# HG changeset patch # User Christian Wimmer # Date 1429632569 25200 # Node ID 0ff1d79095ede5ebe93c4162cb9036e4fcc51154 # Parent 0eff75735b2913fd4ca7400accda72bb6fcb277a Guard for null pointer exception diff -r 0eff75735b29 -r 0ff1d79095ed graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadHubNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadHubNode.java Tue Apr 21 17:32:53 2015 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadHubNode.java Tue Apr 21 09:09:29 2015 -0700 @@ -80,7 +80,7 @@ ResolvedJavaType exactType = null; if (objectStamp.isExactType()) { exactType = objectStamp.type(); - } else if (objectStamp.type() != null && graph().getAssumptions() != null) { + } else if (objectStamp.type() != null && graph() != null && graph().getAssumptions() != null) { AssumptionResult leafConcreteSubtype = objectStamp.type().findLeafConcreteSubtype(); if (leafConcreteSubtype != null) { exactType = leafConcreteSubtype.getResult();