Skip to content

Commit d60df59

Browse files
authored
fix #18 / cppcheck init fail (#28)
1 parent e240dac commit d60df59

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ protected Collection<File> getIncludes(boolean onlyUserDefined) {
179179
if (includePathSetting instanceof ACPathEntry) {
180180
// let CDT do the resolution for all ACPathEntries which should cover all include settings
181181
ACPathEntry includePathEntry = (ACPathEntry) includePathSetting;
182-
includePath = includePathEntry.getLocation().toFile();
182+
IPath location = includePathEntry.getLocation();
183+
if (location == null) {
184+
continue;
185+
}
186+
187+
includePath = location.toFile();
183188
} else {
184189

185190
// make path absolute

0 commit comments

Comments
 (0)