1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Check for null in getOptionById

This commit is contained in:
Leo Treggiari 2005-07-28 00:13:22 +00:00
parent 7656bf39b8
commit 16e8febd47

View file

@ -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;
}