From 953a8313c3a9b464c34707485b143a9152500c78 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 21 Jan 2023 11:26:05 +0100 Subject: Fix GitHub #214 Signed-off-by: Alexander Kriegisch --- weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java index d814903c9..1efa88fc8 100644 --- a/weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java +++ b/weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java @@ -375,7 +375,7 @@ public class BcelShadow extends Shadow { int i = 0; for (BcelAdvice element : badAdvice) { ISourceLocation sLoc = element.getSourceLocation(); - if (sLoc != null) { + if (sLoc != null && sLoc.getLine() > 0) { badLocs[i++] = sLoc; } } -- cgit v1.2.3