From fccf82603b42da3a9ac95efef2754a5e6c60a61b Mon Sep 17 00:00:00 2001 From: davidramnero Date: Mon, 12 Jan 2026 21:32:32 +0100 Subject: [PATCH] null-check ACPathEntry location --- .../com/googlecode/cppcheclipse/ui/ToolchainSettings.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java index 461edb7..34550f8 100644 --- a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java +++ b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java @@ -179,7 +179,12 @@ protected Collection getIncludes(boolean onlyUserDefined) { if (includePathSetting instanceof ACPathEntry) { // let CDT do the resolution for all ACPathEntries which should cover all include settings ACPathEntry includePathEntry = (ACPathEntry) includePathSetting; - includePath = includePathEntry.getLocation().toFile(); + IPath location = includePathEntry.getLocation(); + if (location == null) { + continue; + } + + includePath = location.toFile(); } else { // make path absolute