mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Fixed potential NPE
buildInfo is null in the case that the node list is empty. Change-Id: I165ec31eeeab57e1eb7bed0268d0f83c70d6e0f7 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
This commit is contained in:
parent
5d91f6f847
commit
f7c173377d
1 changed files with 3 additions and 1 deletions
|
@ -2031,7 +2031,9 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (buildInfo != null) {
|
||||||
buildInfo.setValid(true);
|
buildInfo.setValid(true);
|
||||||
|
}
|
||||||
return buildInfo;
|
return buildInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue