hotspot/src/os/windows/vm/os_windows.cpp
changeset 16669 fb3397cee116
parent 15927 f256c20146f4
child 16672 152c041083e1
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Fri Mar 29 14:18:40 2013 -0700
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Wed Apr 03 16:43:09 2013 -0700
@@ -1177,6 +1177,9 @@
   } else if (strchr(pname, *os::path_separator()) != NULL) {
     int n;
     char** pelements = split_path(pname, &n);
+    if (pelements == NULL) {
+        return false;
+    }
     for (int i = 0 ; i < n ; i++) {
       char* path = pelements[i];
       // Really shouldn't be NULL, but check can't hurt