diff --git a/code/src/com/kopfgeldjaeger/ratememaybe/RateMeMaybeFragment.java b/code/src/com/kopfgeldjaeger/ratememaybe/RateMeMaybeFragment.java index da98a1f..9892402 100644 --- a/code/src/com/kopfgeldjaeger/ratememaybe/RateMeMaybeFragment.java +++ b/code/src/com/kopfgeldjaeger/ratememaybe/RateMeMaybeFragment.java @@ -71,7 +71,9 @@ public Dialog onCreateDialog(Bundle savedInstanceState) { @Override public void onCancel(DialogInterface dialog) { - mInterface._handleCancel(); + if (mInterface != null) { + mInterface._handleCancel(); + } } @Override @@ -102,4 +104,4 @@ public void onDestroyView() { super.onDestroyView(); } -} \ No newline at end of file +}