aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-21 11:26:05 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-21 11:26:05 +0100
commit953a8313c3a9b464c34707485b143a9152500c78 (patch)
tree1ec25b970fad4ac0e8df3b1943db804d52f29451
parent782cd415e2ae2c314ffbeec05ee303dd7bdf6a81 (diff)
downloadaspectj-953a8313c3a9b464c34707485b143a9152500c78.tar.gz
aspectj-953a8313c3a9b464c34707485b143a9152500c78.zip
Fix GitHub #214
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
-rw-r--r--weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java2
1 files changed, 1 insertions, 1 deletions
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;
}
}