mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Fix for NPE in DOMSourceIndexerRunner.AddMarkerProblem.run().
Possible fix for PR 98571: Multiple "Starter.exe" and "cygpath.exe" when launch IDE
This commit is contained in:
parent
58ed6a6cdd
commit
2290223ab3
2 changed files with 8 additions and 3 deletions
|
@ -123,6 +123,7 @@ public class CygpathTranslator {
|
|||
}
|
||||
}
|
||||
}
|
||||
cygpath.cygPath.dispose();
|
||||
return translatedIncludePaths;
|
||||
}
|
||||
|
||||
|
|
|
@ -363,9 +363,13 @@ public class DOMSourceIndexerRunner extends AbstractIndexer {
|
|||
|
||||
for (int i=0; i<markers.length; i++) {
|
||||
tempMarker = markers[i];
|
||||
nameStart = ((Integer) tempMarker.getAttribute(IMarker.CHAR_START)).intValue();
|
||||
nameLen = ((Integer) tempMarker.getAttribute(IMarker.CHAR_END)).intValue() - nameStart;
|
||||
tempMsgString = (String) tempMarker.getAttribute(IMarker.MESSAGE);
|
||||
Integer tempInt = (Integer) tempMarker.getAttribute(IMarker.CHAR_START);
|
||||
if (tempInt == null) {
|
||||
continue;
|
||||
}
|
||||
nameStart = tempInt.intValue();
|
||||
nameLen = ((Integer) tempMarker.getAttribute(IMarker.CHAR_END)).intValue() - nameStart;
|
||||
if (nameStart != -1 &&
|
||||
nameStart == location.getNodeOffset() &&
|
||||
nameLen == location.getNodeLength() &&
|
||||
|
|
Loading…
Add table
Reference in a new issue