Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2010-01-04 09:51:58 +0000
committerMarkus Schorn2010-01-04 09:51:58 +0000
commitb825f03bf955636b14926ce864c851bb39e733c5 (patch)
treed8ee43c4814b06f9dfe6006f93e2f70533cb6cd0
parent7cbd3a3e0154a6e3eff27567ff4e72062953c6bb (diff)
downloadorg.eclipse.cdt-b825f03bf955636b14926ce864c851bb39e733c5.tar.gz
org.eclipse.cdt-b825f03bf955636b14926ce864c851bb39e733c5.tar.xz
org.eclipse.cdt-b825f03bf955636b14926ce864c851bb39e733c5.zip
Bug 297751: NPE using search.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java
index 4c612126b64..74fa85c469b 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java
@@ -592,7 +592,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]);
}

Back to the top