1.1 --- a/src/share/vm/opto/graphKit.cpp Tue Sep 08 10:42:50 2009 -0700 1.2 +++ b/src/share/vm/opto/graphKit.cpp Tue Sep 08 16:56:31 2009 -0700 1.3 @@ -1126,7 +1126,7 @@ 1.4 const Type *t = _gvn.type( value ); 1.5 1.6 const TypeOopPtr* tp = t->isa_oopptr(); 1.7 - if (tp != NULL && !tp->klass()->is_loaded() 1.8 + if (tp != NULL && tp->klass() != NULL && !tp->klass()->is_loaded() 1.9 // Only for do_null_check, not any of its siblings: 1.10 && !assert_null && null_control == NULL) { 1.11 // Usually, any field access or invocation on an unloaded oop type