Add null check before shutting down executor in ScannerActivity

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

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

Loading…
Cancel
Save