mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
avoid StringIndexOutOfBoundsException on close. Fixes #66
Signed-off-by: Martin Weber <11367029+15knots@users.noreply.github.com> Change-Id: I816b8ee5852e6b25011a611c07c54d0a814a74d8
This commit is contained in:
parent
52483c01c2
commit
d1a43d5417
2 changed files with 4 additions and 1 deletions
|
@ -205,6 +205,10 @@ import org.eclipse.core.runtime.Status;
|
||||||
*/
|
*/
|
||||||
public void processMessage(ICMakeExecutionMarkerFactory markerFactory, String fullMessage)
|
public void processMessage(ICMakeExecutionMarkerFactory markerFactory, String fullMessage)
|
||||||
throws CoreException {
|
throws CoreException {
|
||||||
|
int length = getMessageStart().length();
|
||||||
|
if (fullMessage.length() <= length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String content = fullMessage.substring(getMessageStart().length());
|
String content = fullMessage.substring(getMessageStart().length());
|
||||||
// mandatory attributes for the marker
|
// mandatory attributes for the marker
|
||||||
Map<String, Object> attributes = new HashMap<>(3);
|
Map<String, Object> attributes = new HashMap<>(3);
|
||||||
|
|
|
@ -50,7 +50,6 @@ interface ICMakeExecutionMarkerFactory {
|
||||||
*
|
*
|
||||||
* @throws CoreException
|
* @throws CoreException
|
||||||
*/
|
*/
|
||||||
// TODO pass in the extra attributes here then return void
|
|
||||||
void createMarker(String message, int severity, String filePath, Map<String, Object> mandatoryAttributes)
|
void createMarker(String message, int severity, String filePath, Map<String, Object> mandatoryAttributes)
|
||||||
throws CoreException;
|
throws CoreException;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue