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:
parent
3849591e3a
commit
4733439ba4
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
|
|||
// TODO it might be good to do a selection parse to ensure that
|
||||
// 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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue