< prev index next >

src/hotspot/share/adlc/adlparse.cpp

Print this page

        

@@ -481,11 +481,12 @@
     else if (!strcmp(ident, "constraint"))oper->_constraint= constraint_parse();
     else if (!strcmp(ident, "construct")) oper->_construct = construct_parse();
     else if (!strcmp(ident, "format"))    oper->_format    = format_parse();
     else if (!strcmp(ident, "interface")) oper->_interface = interface_parse();
     // Check identifier to see if it is the name of an attribute
-    else if (((attr = _globalNames[ident]->is_attribute()) != NULL) &&
+    else if (_globalNames[ident] &&
+             ((attr = _globalNames[ident]->is_attribute()) != NULL) &&
              (attr->_atype == OP_ATTR))   oper->_attribs   = attr_parse(ident);
     else {
       parse_err(SYNERR, "expected one of - constraint, predicate, match, encode, format, construct, or the name of a defined operand attribute at %s\n", ident);
     }
     skipws();
< prev index next >