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) {
FragmentManager fm = getFragmentManager();
if (isRemoving() || isDetached()) {
if (fm == null || isRemoving() || isDetached()) {
return;
}