changeset 13552:3f2cca7ef3fb

jrt fs: Fixed NPE from JrtExplodedFileSystem.frontSlashToNativeSlash
author sundar
date Fri, 31 Jul 2015 11:37:53 +0530
parents f161a951b47c
children 6a7e0309fa89
files src/java.base/share/classes/jdk/internal/jrtfs/JrtExplodedFileSystem.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/jrtfs/JrtExplodedFileSystem.java	Thu Jul 30 20:29:50 2015 +0100
+++ b/src/java.base/share/classes/jdk/internal/jrtfs/JrtExplodedFileSystem.java	Fri Jul 31 11:37:53 2015 +0530
@@ -434,12 +434,12 @@
 
     // convert "/" to platform path separator
     private String frontSlashToNativeSlash(String str) {
-        return separator != null ? str : str.replace("/", separator);
+        return separator == null ? str : str.replace("/", separator);
     }
 
     // convert platform path separator to "/"
     private String nativeSlashToFrontSlash(String str) {
-        return separator != null ? str : str.replace(separator, "/");
+        return separator == null ? str : str.replace(separator, "/");
     }
 
     // convert "/"s to "."s