From ceda1a3167c6643078ad69954fd7c1ca763625b4 Mon Sep 17 00:00:00 2001 From: y20k Date: Tue, 19 Mar 2019 08:39:48 +0100 Subject: [PATCH] null check for target fragment in dialog --- app/src/main/java/org/y20k/trackbook/helpers/DialogHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/y20k/trackbook/helpers/DialogHelper.java b/app/src/main/java/org/y20k/trackbook/helpers/DialogHelper.java index f686929..53e463b 100755 --- a/app/src/main/java/org/y20k/trackbook/helpers/DialogHelper.java +++ b/app/src/main/java/org/y20k/trackbook/helpers/DialogHelper.java @@ -71,8 +71,7 @@ public class DialogHelper extends DialogFragment implements TrackbookKeys { } } } - ); - dialogBuilder.setNegativeButton(negativeButton, + ); dialogBuilder.setNegativeButton(negativeButton, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { Fragment target = getTargetFragment();