1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Avoid NullPointerException

This commit is contained in:
cketti 2013-04-18 05:43:11 +02:00
parent 4890cd9ea0
commit 51ad31a513

View File

@ -768,7 +768,7 @@ public class MessageViewFragment extends SherlockFragment implements OnClickList
private void removeDialog(int dialogId) { private void removeDialog(int dialogId) {
FragmentManager fm = getFragmentManager(); FragmentManager fm = getFragmentManager();
if (isRemoving() || isDetached()) { if (fm == null || isRemoving() || isDetached()) {
return; return;
} }