]> source.dussan.org Git - aspectj.git/commitdiff
guard for 152835 - could be knock on effect from pipeline change
authoraclement <aclement>
Fri, 4 Aug 2006 11:02:38 +0000 (11:02 +0000)
committeraclement <aclement>
Fri, 4 Aug 2006 11:02:38 +0000 (11:02 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java

index 6560f915417af5137c0f4336cebd34767d7670d5..d9a75b79f9d8f0b99fa52abb30501796c2e34a63 100644 (file)
@@ -56,6 +56,8 @@ public class EclipseAdapterUtils {
 
         //compute the how-much-char we are displaying around the inaccurate token
         int begin = startPosition >= source.length ? source.length - 1 : startPosition;
+        if (begin==-1)
+               return "(no source information available)"; // Dont like this - why does it occur? pr152835
         int relativeStart = 0;
         int end = endPosition >= source.length ? source.length - 1 : endPosition;
         int relativeEnd = 0;