diff --git a/src/main/java/util/URITools.java b/src/main/java/util/URITools.java index 7c320f93..d4bebf59 100644 --- a/src/main/java/util/URITools.java +++ b/src/main/java/util/URITools.java @@ -466,7 +466,11 @@ public static boolean isFile( URI uri ) { final String scheme = uri.getScheme(); final boolean hasScheme = scheme != null; - return !hasScheme || FILE_SCHEME.asPredicate().test( scheme ); + + if ( !hasScheme ) + return false; + else + return FILE_SCHEME.asPredicate().test( scheme ); } /**