1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 297751: NPE using search.

This commit is contained in:
Markus Schorn 2010-01-04 09:51:05 +00:00
parent 3849591e3a
commit 4733439ba4

View file

@ -622,7 +622,7 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
// TODO it might be good to do a selection parse to ensure that // TODO it might be good to do a selection parse to ensure that
// the selection is valid. // the selection is valid.
} }
if (patternCombo.getText().trim().length() == 0 && previousPatterns.length > 0) { if (patternCombo.getText().trim().length() == 0 && previousPatterns != null && previousPatterns.length > 0) {
patternCombo.setText(previousPatterns[0]); patternCombo.setText(previousPatterns[0]);
} }