Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2013-08-22 18:17:38 +0000
committerChris Recoskie2013-08-22 18:20:15 +0000
commit003cb679130178e7817060acb7fbae6106fbb6ba (patch)
treeb014bb9c6cda44405df18419dc47a9b1257086e2
parentd8157b008a26698acf4e444318a453f40110cb34 (diff)
downloadorg.eclipse.cdt-003cb679130178e7817060acb7fbae6106fbb6ba.tar.gz
org.eclipse.cdt-003cb679130178e7817060acb7fbae6106fbb6ba.tar.xz
org.eclipse.cdt-003cb679130178e7817060acb7fbae6106fbb6ba.zip
Bug 413080 - IllegalArgumentException in Indexer preference page
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerBlock.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerBlock.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerBlock.java
index 54069301f1c..a9de49fe8a3 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerBlock.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerBlock.java
@@ -210,7 +210,10 @@ public class IndexerBlock extends AbstractCOptionPage {
if (fIndexerConfigMap.size() > 2) {
fIndexersComboBox = ControlFactory.createSelectCombo(group, "", ""); //$NON-NLS-1$ //$NON-NLS-2$
fIndexersComboBox.addSelectionListener(indexerChangeListener);
- fReindexOnIndexerChange = ControlFactory.createCheckBox(group, CUIPlugin.getResourceString("IndexerBlock.redindexOnIndexerChange")); //$NON-NLS-1$
+
+ if(getProject() != null) {
+ fReindexOnIndexerChange = ControlFactory.createCheckBox(group, CUIPlugin.getResourceString("IndexerBlock.redindexOnIndexerChange")); //$NON-NLS-1$
+ }
}
// add composite for pages

Back to the top