changeset 16853:bcfb6f72ace6

Made replacements verifier more robust.
author Christian Humer <christian.humer@gmail.com>
date Mon, 18 Aug 2014 19:00:41 +0200
parents 3c114b3e08c3
children fc6f12ee71e5
files graal/com.oracle.graal.replacements.verifier/src/com/oracle/graal/replacements/verifier/AbstractVerifier.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements.verifier/src/com/oracle/graal/replacements/verifier/AbstractVerifier.java	Mon Aug 18 19:00:20 2014 +0200
+++ b/graal/com.oracle.graal.replacements.verifier/src/com/oracle/graal/replacements/verifier/AbstractVerifier.java	Mon Aug 18 19:00:41 2014 +0200
@@ -44,7 +44,7 @@
     @SuppressWarnings("unchecked")
     protected static <T> T resolveAnnotationValue(Class<T> expectedType, AnnotationValue value) {
         if (value == null) {
-            throw new NullPointerException("Value must not be null.");
+            return null;
         }
         Object unboxedValue = value.getValue();
         if (unboxedValue != null) {