Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 regression/jvm/ExceptionsTest.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/regression/jvm/ExceptionsTest.java 
b/regression/jvm/ExceptionsTest.java
index cf893ff..0ec9d05 100644
--- a/regression/jvm/ExceptionsTest.java
+++ b/regression/jvm/ExceptionsTest.java
@@ -121,6 +121,19 @@ public class ExceptionsTest extends TestCase {
         } catch (Exception e) {}
     }
 
+    public static void testInvokevirtualOnNullReference() {
+        boolean catched = false;
+
+        try {
+            Object o = null;
+            o.getClass();
+        } catch (NullPointerException e) {
+            catched = true;
+        }
+
+        assertTrue(catched);
+    }
+
     public static void main(String args[]) {
         testTryBlockDoesNotThrowAnything();
         testThrowAndCatchInTheSameMethod();
@@ -128,6 +141,7 @@ public class ExceptionsTest extends TestCase {
         testMultipleCatchBlocks();
         testNestedTryCatch();
         testEmptyCatchBlock();
+        testInvokevirtualOnNullReference();
 
         exit();
     }
-- 
1.6.0.6


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to