Merge "Update bogus PatternSyntaxException test case."
diff --git a/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/PatternSyntaxExceptionTest.java b/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/PatternSyntaxExceptionTest.java
index 0f9e1e6..6fbe9cf 100644
--- a/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/PatternSyntaxExceptionTest.java
+++ b/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/PatternSyntaxExceptionTest.java
@@ -78,12 +78,14 @@
     s = e.getMessage();
     assertFalse(s.contains("^"));
 
-    // No pattern, but index specified
+    // No pattern, but index specified. NOTE: This is an "unusual" case since
+    // it make no sense to provide an index and not a pattern.
     e = new PatternSyntaxException("Foo", null, 0);
     assertEquals(0, e.getIndex());
 
     s = e.getMessage();
-    assertFalse(s.contains("^"));
+    assertTrue(s.contains("^"));
+    assertTrue(s.contains("null"));
   }
 
   public void testCase() {