hotspot/src/os/windows/vm/os_windows.cpp
changeset 16672 152c041083e1
parent 16631 c6860a0ebc99
parent 16669 fb3397cee116
child 17006 b9bfa72b7dda
child 17026 72b2233861f1
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Thu Apr 04 21:15:43 2013 -0700
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Fri Apr 05 10:38:08 2013 -0700
@@ -1182,6 +1182,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