From 0776b7b6a323e5bbb0bf1cad655f16087a924891 Mon Sep 17 00:00:00 2001 From: m2049r Date: Thu, 21 Jun 2018 22:15:14 +0200 Subject: [PATCH] avoid NPE (#330) --- app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java b/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java index 08ec3e9..52de0c9 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 @@ public class WalletActivity extends SecureActivity implements WalletFragment.Lis saveWallet(); } stopWalletService(); - drawer.removeDrawerListener(drawerToggle); + if (drawer != null) drawer.removeDrawerListener(drawerToggle); super.onDestroy(); }