Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE-fix for Preferences/Ext-Prog/Settings for X/Browse #4983

Merged
merged 11 commits into from
May 21, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public class PushToApplicationSettings {
protected AbstractPushToApplication application;
private DialogService dialogService;

public GridPane getJFXSettingPane(int n) {
public GridPane getJFXSettingPane(int n, DialogService ds) {
calixtus marked this conversation as resolved.
Show resolved Hide resolved
dialogService = ds;
switch (n) {
case 0:
application = new PushToEmacs(dialogService);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class PushToApplicationSettingsDialog {
public static void showSettingsDialog(DialogService dialogService, PushToApplicationSettings toApp, int n) {

DialogPane dialogPane = new DialogPane();
dialogPane.setContent(toApp.getJFXSettingPane(n));
dialogPane.setContent(toApp.getJFXSettingPane(n, dialogService));

dialogService.showCustomDialogAndWait(Localization.lang("App settings"), dialogPane, ButtonType.OK, ButtonType.CANCEL).ifPresent(btn -> {
if (btn == ButtonType.OK) {
Expand Down