changeset 19524:d56b51bbdd98

Small fix in GraphUtil.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 20 Feb 2015 14:37:08 +0100
parents 0c113733e339
children 35481bcb5882
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java	Fri Feb 20 14:18:06 2015 +0100
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java	Fri Feb 20 14:37:08 2015 +0100
@@ -275,7 +275,7 @@
      */
     public static RuntimeException approxSourceException(Node node, Throwable cause) {
         final StackTraceElement[] elements = approxSourceStackTraceElement(node);
-        return createBailoutException(cause == null ? null : cause.getMessage(), cause, elements);
+        return createBailoutException(cause == null ? "" : cause.getMessage(), cause, elements);
     }
 
     /**