src/hotspot/share/opto/node.hpp
changeset 51078 fc6cfe40e32a
parent 50623 5209d8a6303e
child 51566 904cf5407ac7
--- a/src/hotspot/share/opto/node.hpp	Fri Jul 13 11:21:55 2018 +0800
+++ b/src/hotspot/share/opto/node.hpp	Thu Jul 12 16:31:28 2018 +0200
@@ -1689,9 +1689,10 @@
   int block_idx = (idx >> _log2_node_notes_block_size);
   int grow_by = (block_idx - (arr == NULL? 0: arr->length()));
   if (grow_by >= 0) {
-    if (!can_grow)  return NULL;
+    if (!can_grow) return NULL;
     grow_node_notes(arr, grow_by + 1);
   }
+  if (arr == NULL) return NULL;
   // (Every element of arr is a sub-array of length _node_notes_block_size.)
   return arr->at(block_idx) + (idx & (_node_notes_block_size-1));
 }