fix null reference access to emdk3Listener
@@ -599,6 +599,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp
if (releaseEMDKOnPause) {
Logger.D( TAG, "Will restore EMDK resources" );
+ if(emdk3Listener)
emdk3Listener.resume();
}
@@ -647,6 +648,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp
Logger.D( TAG, "Will release EMDK resources" );
enabledScanner = null;
removeAllEMDKScannerIDs();
+ if(emdk3Listener)
emdk3Listener.pause();
setIsEMDKScannerSetupCalled(false);
}
