Fixing NPE thrown while shutting down the MDM server

merge-requests/1/head
prabathabey 10 years ago
parent 2c5cc4c28d
commit 6ca7ee6c78

@ -102,10 +102,15 @@ public class MobileDeviceManagementServiceComponent {
log.debug("De-activating Mobile Device Management Service Component"); log.debug("De-activating Mobile Device Management Service Component");
} }
try { try {
if (androidServiceRegRef != null) {
androidServiceRegRef.unregister(); androidServiceRegRef.unregister();
}
if (iOSServiceRegRef != null) {
iOSServiceRegRef.unregister(); iOSServiceRegRef.unregister();
}
if (windowsServiceRegRef != null) {
windowsServiceRegRef.unregister(); windowsServiceRegRef.unregister();
serverStartupObserverRef.unregister(); }
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug( log.debug(

Loading…
Cancel
Save