avoid NPE (#330)

This commit is contained in:
m2049r 2018-06-21 22:15:14 +02:00 committed by GitHub
parent c2eed85a83
commit 0776b7b6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public class WalletActivity extends SecureActivity implements WalletFragment.Lis
saveWallet();
}
stopWalletService();
drawer.removeDrawerListener(drawerToggle);
if (drawer != null) drawer.removeDrawerListener(drawerToggle);
super.onDestroy();
}