Skip to content

Commit 9eaede6

Browse files
committed
Add null-check in QuickSearchDialog::restoreDialog(...) #2706
Fixes #2706
1 parent 54028a5 commit 9eaede6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bundles/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ protected void restoreDialog(IDialogSettings settings) {
426426
}
427427

428428
// Retrieve the last locations where the user searched (works across restarts)
429-
filterHistory.addAll(List.of(settings.getArray(FILTER_HISTORY)));
429+
String[] array = settings.getArray(FILTER_HISTORY);
430+
if (array != null) {
431+
filterHistory.addAll(List.of(array));
432+
}
433+
430434
if (!filterHistory.isEmpty()) {
431435
String filter = filterHistory.getFirst();
432436

0 commit comments

Comments
 (0)