From: aclement Date: Fri, 4 Aug 2006 11:02:38 +0000 (+0000) Subject: guard for 152835 - could be knock on effect from pipeline change X-Git-Tag: pre_pr_153572~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=908b4054bff043f50d8bcf12afb6801e0d2913d4;p=aspectj.git guard for 152835 - could be knock on effect from pipeline change --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java index 6560f9154..d9a75b79f 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java @@ -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;