Fixing NPE thrown while shutting down the MDM server

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

Loading…
Cancel
Save