# HG changeset patch # User thartmann # Date 1495437492 -7200 # Node ID 286c8e80795b6a243f155ff5ae219172c6905fa1 # Parent 1f917785fbe72239c6cc78d76c657ee25a0fcba0 8180576: Null pointer dereference in Matcher::xform() Summary: Fixed a missing null check on n->in(0) found by Parfait. Reviewed-by: kvn diff -r 1f917785fbe7 -r 286c8e80795b src/share/vm/opto/matcher.cpp --- a/src/share/vm/opto/matcher.cpp Mon May 22 09:17:32 2017 +0200 +++ b/src/share/vm/opto/matcher.cpp Mon May 22 09:18:12 2017 +0200 @@ -1000,7 +1000,7 @@ 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