Add null check before shutting down executor in ScannerActivity

This commit is contained in:
Alexander Bakker 2022-11-30 13:11:06 +01:00
parent aff441a7ee
commit c9a27b830d

View file

@ -89,7 +89,9 @@ public class ScannerActivity extends AegisActivity implements QrCodeAnalyzer.Lis
@Override
protected void onDestroy() {
_executor.shutdownNow();
if (_executor != null) {
_executor.shutdownNow();
}
super.onDestroy();
}