diff --git a/src/share/vm/opto/matcher.cpp b/src/share/vm/opto/matcher.cpp index c01785a8d61b2281fc5deff99f34b569c977f503..d6ee92f486f651a08c1f77c908aec566fe8d1a30 100644 --- a/src/share/vm/opto/matcher.cpp +++ b/src/share/vm/opto/matcher.cpp @@ -1020,7 +1020,7 @@ Node *Matcher::xform( Node *n, int max_stack ) { if (C->failing()) return NULL; if (m == NULL) { Matcher::soft_match_failure(); return NULL; } } else { // Nothing the matcher cares about - if( n->is_Proj() && n->in(0)->is_Multi()) { // Projections? + if (n->is_Proj() && n->in(0) != NULL && n->in(0)->is_Multi()) { // Projections? // Convert to machine-dependent projection m = n->in(0)->as_Multi()->match( n->as_Proj(), this ); #ifdef ASSERT