aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-04 11:02:38 +0000
committeraclement <aclement>2006-08-04 11:02:38 +0000
commit908b4054bff043f50d8bcf12afb6801e0d2913d4 (patch)
treec883fd594cf0d3e7cef8d536d0135db5f767dfb5 /org.aspectj.ajdt.core
parentff2377a7f3b3d2148d107a7c411cf8308d254136 (diff)
downloadaspectj-908b4054bff043f50d8bcf12afb6801e0d2913d4.tar.gz
aspectj-908b4054bff043f50d8bcf12afb6801e0d2913d4.zip
guard for 152835 - could be knock on effect from pipeline change
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java2
1 files changed, 2 insertions, 0 deletions
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;