diff options
author | Lukas Rössler <lukas.roessler@mysugr.com> | 2020-02-20 13:07:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 14:07:20 +0200 |
commit | 3b95f61698e0e2c2db71a313f0f959a8b6f0377e (patch) | |
tree | 0ee5b53c4c7135818360747bb0cbc6a3f19ad334 /org.jacoco.core.test/src/org/jacoco/core | |
parent | 23c2ca75261ee3d39a00b7080664ebd0e9b9f6c8 (diff) | |
download | jacoco-3b95f61698e0e2c2db71a313f0f959a8b6f0377e.tar.gz |
Fix NPE (#1020)
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core')
-rw-r--r-- | org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/AbstractMatcherTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/AbstractMatcherTest.java b/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/AbstractMatcherTest.java index b62e4501..6424a98c 100644 --- a/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/AbstractMatcherTest.java +++ b/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/AbstractMatcherTest.java @@ -202,6 +202,10 @@ public class AbstractMatcherTest { @Test public void firstIsALoad0() { + // should set cursor to null when no opcodes are present + matcher.firstIsALoad0(m); + assertNull(matcher.cursor); + // should set cursor to null when opcode mismatch m.visitInsn(Opcodes.NOP); matcher.firstIsALoad0(m); |