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:
parent
7656bf39b8
commit
16e8febd47
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue