From 10525102a01678175cf6b5b1b8eb68d2c4d74234 Mon Sep 17 00:00:00 2001 From: silent1 Date: Sat, 21 Dec 2013 21:26:28 -0500 Subject: [PATCH] Fixing Null Pointer Exception --- .../com/kopfgeldjaeger/ratememaybe/RateMeMaybeFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +}