mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Don't add null parser ids to the list of binary parsers.
This started happening when I added the ErrorBuildConfiguration which returns a null id. This happens when you create a CMake project and add a new launch target. Not totally sure how we got an error config for that. Will investigate that later. Change-Id: I1a4e7c528d2cee101a432d386ad6a7505b9983b6
This commit is contained in:
parent
055349a734
commit
f96887cb35
1 changed files with 4 additions and 1 deletions
|
@ -618,7 +618,10 @@ public class CModelManager implements IResourceChangeListener, IContentTypeChang
|
|||
for (IBuildConfiguration config : project.getBuildConfigs()) {
|
||||
ICBuildConfiguration cconfig = config.getAdapter(ICBuildConfiguration.class);
|
||||
if (cconfig != null) {
|
||||
parserIds.add(cconfig.getBinaryParserId());
|
||||
String id = cconfig.getBinaryParserId();
|
||||
if (id != null) {
|
||||
parserIds.add(cconfig.getBinaryParserId());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!parserIds.isEmpty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue