null check for target fragment in dialog

This commit is contained in:
y20k 2019-03-19 08:39:48 +01:00
parent dbdfef7b21
commit ceda1a3167

View file

@ -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();