changeset 36317 | 5c78a6c34390 |
parent 36310 | bcc01156b370 |
child 36325 | 1330e79162ac |
--- a/hotspot/src/share/vm/c1/c1_Canonicalizer.cpp Tue Feb 23 22:09:41 2016 +0300 +++ b/hotspot/src/share/vm/c1/c1_Canonicalizer.cpp Wed Feb 24 18:43:51 2016 +0300 @@ -239,7 +239,10 @@ } else if ((ct = x->array()->as_Constant()) != NULL) { // Constant arrays have constant lengths. - set_constant(ct->type()->as_ArrayConstant()->value()->length()); + ArrayConstant* cnst = ct->type()->as_ArrayConstant(); + if (cnst != NULL) { + set_constant(cnst->value()->length()); + } #ifdef ASSERT } else {