Skip to content

Commit

Permalink
avoid NPE (m2049r#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2049r authored and crtlib committed Jun 24, 2018
1 parent 496d577 commit 27e8139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected void onDestroy() {
saveWallet();
}
stopWalletService();
drawer.removeDrawerListener(drawerToggle);
if (drawer != null) drawer.removeDrawerListener(drawerToggle);
super.onDestroy();
}

Expand Down

0 comments on commit 27e8139

Please sign in to comment.