< prev index next >

src/hotspot/share/jfr/jni/jfrJavaSupport.cpp

Print this page

        

@@ -166,11 +166,11 @@
   InstanceKlass* const klass = static_cast<InstanceKlass*>(args->klass());
   klass->initialize(CHECK);
 
   const int array_length = args->array_length();
 
-  if (array_length >= 0) {
+  if (array_length > 0) {
     array_construction(args, result, klass, array_length, CHECK);
   } else {
     object_construction(args, result, klass, THREAD);
   }
 }
< prev index next >