1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +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:
Torbjörn Svensson 2020-08-28 19:13:02 +02:00 committed by Jonah Graham
parent 5d91f6f847
commit f7c173377d

View file

@ -2031,7 +2031,9 @@ public class ManagedBuildManager extends AbstractCExtension {
}
}
buildInfo.setValid(true);
if (buildInfo != null) {
buildInfo.setValid(true);
}
return buildInfo;
}