Avoid NullPointerException
This commit is contained in:
parent
4890cd9ea0
commit
51ad31a513
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue