From 27e813951ae13279bb3c90d5fa7ebb8c80c5da04 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 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(); }