Skip to content

Commit

Permalink
Fixed NPE in AcceleoMainTab.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Jan 12, 2024
1 parent 519c049 commit aef66d3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017 Obeo.
* Copyright (c) 2017, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -330,7 +330,8 @@ private void handleBrowseDestinationButton() {
final AbstractResourceSelectionDialog dialog = new FolderSelectionDialog(getShell(),
"Select the destination folder", destination);
final int dialogResult = dialog.open();
if ((dialogResult == IDialogConstants.OK_ID) && !dialog.getFileName().isEmpty()) {
if ((dialogResult == IDialogConstants.OK_ID) && dialog.getFileName() != null && !dialog.getFileName()
.isEmpty()) {
destinationText.setText(dialog.getFileName());
setDirty(isDirty());
}
Expand Down

0 comments on commit aef66d3

Please sign in to comment.