Skip to content

Commit 45c2854

Browse files
author
Daniel Kroening
committed
check null references on method invokation
1 parent aea1313 commit 45c2854

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class NullPointer2 {
2+
3+
static Object my_field;
4+
5+
public static void main(String[] args)
6+
{
7+
int z;
8+
9+
z=my_field.hashCode(); // NULL pointer dereference
10+
}
11+
12+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
NullPointer2.class
3+
--pointer-check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^ file NullPointer2.java line 9$
7+
^VERIFICATION FAILED$
8+
--
9+
^warning: ignoring

0 commit comments

Comments
 (0)