From 908b4054bff043f50d8bcf12afb6801e0d2913d4 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 4 Aug 2006 11:02:38 +0000 Subject: [PATCH] guard for 152835 - could be knock on effect from pipeline change --- .../aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5