Add null check before shutting down executor in ScannerActivity

pull/1054/head
Alexander Bakker 2 years ago
parent aff441a7ee
commit c9a27b830d

@ -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();
}

Loading…
Cancel
Save