diff --git a/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java b/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java index b15417282b..47a7920b2d 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java +++ b/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java @@ -179,7 +179,7 @@ protected void onDestroy() { saveWallet(); } stopWalletService(); - drawer.removeDrawerListener(drawerToggle); + if (drawer != null) drawer.removeDrawerListener(drawerToggle); super.onDestroy(); }