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");
}
try {
if (androidServiceRegRef != null) {
androidServiceRegRef.unregister();
}
if (iOSServiceRegRef != null) {
iOSServiceRegRef.unregister();
}
if (windowsServiceRegRef != null) {
windowsServiceRegRef.unregister();
serverStartupObserverRef.unregister();
}
if (log.isDebugEnabled()) {
log.debug(

Loading…
Cancel
Save