aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core.test/src/org/jacoco/core
diff options
context:
space:
mode:
authorLukas Rössler <lukas.roessler@mysugr.com>2020-02-20 13:07:20 +0100
committerGitHub <noreply@github.com>2020-02-20 14:07:20 +0200
commit3b95f61698e0e2c2db71a313f0f959a8b6f0377e (patch)
tree0ee5b53c4c7135818360747bb0cbc6a3f19ad334 /org.jacoco.core.test/src/org/jacoco/core
parent23c2ca75261ee3d39a00b7080664ebd0e9b9f6c8 (diff)
downloadjacoco-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.java4
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);