Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorbjörn Svensson2020-08-28 13:13:02 -0400
committerJonah Graham2020-08-30 23:09:12 -0400
commitf7c173377d5cb996a2f4533c5a1f915336b8b92d (patch)
tree88f2494143541e524ba3b7e2ecc786f2150a3610 /build/org.eclipse.cdt.managedbuilder.core/src/org
parent5d91f6f8472f39e86b0207b9578dc7c355df7a6e (diff)
downloadorg.eclipse.cdt-f7c173377d5cb996a2f4533c5a1f915336b8b92d.tar.gz
org.eclipse.cdt-f7c173377d5cb996a2f4533c5a1f915336b8b92d.tar.xz
org.eclipse.cdt-f7c173377d5cb996a2f4533c5a1f915336b8b92d.zip
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>
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.core/src/org')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
index 6c1eda4e0f0..59664032625 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
@@ -2031,7 +2031,9 @@ public class ManagedBuildManager extends AbstractCExtension {
}
}
- buildInfo.setValid(true);
+ if (buildInfo != null) {
+ buildInfo.setValid(true);
+ }
return buildInfo;
}

Back to the top