mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 15:02:54 +00:00
Add null check before shutting down executor in ScannerActivity
This commit is contained in:
parent
aff441a7ee
commit
c9a27b830d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue