Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsPrefStore.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsPrefStore.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsPrefStore.java
index 0fb5fea9531..c5cacfa3f07 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsPrefStore.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsPrefStore.java
@@ -198,15 +198,20 @@ public class ToolSettingsPrefStore implements IPreferenceStore {
}
public Object[] getOption(String id){
- if (selectedElement == null) return null;
+ if (selectedElement == null)
+ return null;
IHoldsOptions selectedHolder = selectedElement.getHoldOptions();
- if (selectedHolder == null) selectedHolder = selectedElement.getTool();
+ if (selectedHolder == null)
+ selectedHolder = selectedElement.getTool();
Object options[][] = optCategory.getOptions(rcInfo, selectedHolder);
-
+ if (options == null)
+ return null;
+
for(int i = 0; i < options.length; i++){
IHoldsOptions ho = (IHoldsOptions)options[i][0];
- if(ho == null) break;
+ if(ho == null)
+ break;
IOption option = (IOption)options[i][1];

Back to the top