< prev index next >

src/hotspot/share/runtime/flags/jvmFlag.cpp

Print this page
rev 50985 : 8206977: Minor improvements of runtime code.
Reviewed-by: coleenp, lfoltan

@@ -937,10 +937,14 @@
       max_score = score;
       match = current;
     }
   }
 
+  if (match == NULL) {
+    return NULL;
+  }
+
   if (!(match->is_unlocked() || match->is_unlocker())) {
     if (!allow_locked) {
       return NULL;
     }
   }
< prev index next >