1.1 --- a/src/share/vm/opto/matcher.cpp Mon Jun 23 18:21:18 2008 -0700 1.2 +++ b/src/share/vm/opto/matcher.cpp Tue Jun 24 10:43:29 2008 -0700 1.3 @@ -1766,8 +1766,8 @@ 1.4 } 1.5 case Op_ConN: { // Convert narrow pointers above the centerline to NUL 1.6 TypeNode *tn = n->as_Type(); // Constants derive from type nodes 1.7 - const TypePtr* tp = tn->type()->is_narrowoop()->make_oopptr(); 1.8 - if (tp->_ptr == TypePtr::AnyNull) { 1.9 + const TypePtr* tp = tn->type()->make_ptr(); 1.10 + if (tp && tp->_ptr == TypePtr::AnyNull) { 1.11 tn->set_type(TypeNarrowOop::NULL_PTR); 1.12 } 1.13 break;