Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorLeo Treggiari2005-07-28 00:13:22 +0000
committerLeo Treggiari2005-07-28 00:13:22 +0000
commit16e8febd4703353431fc684dd24ee48537c83298 (patch)
tree39eb1fb6215f34355c2be669ac86088387bcd924 /build
parent7656bf39b8d145bdfcb0b567242ed99e3c3851ec (diff)
downloadorg.eclipse.cdt-16e8febd4703353431fc684dd24ee48537c83298.tar.gz
org.eclipse.cdt-16e8febd4703353431fc684dd24ee48537c83298.tar.xz
org.eclipse.cdt-16e8febd4703353431fc684dd24ee48537c83298.zip
Check for null in getOptionById
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java
index ad03da45089..d1dccbb1167 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java
@@ -299,6 +299,7 @@ public class HoldsOptions extends BuildObject implements IHoldsOptions {
return superClass.getOptionById(id);
}
}
+ if (opt == null) return null;
return opt.isValid() ? opt : null;
}

Back to the top