diff --git a/src/qz/utils/ConnectionUtilities.java b/src/qz/utils/ConnectionUtilities.java index b76d9c1d5..21221ce0c 100644 --- a/src/qz/utils/ConnectionUtilities.java +++ b/src/qz/utils/ConnectionUtilities.java @@ -74,10 +74,8 @@ private static boolean isAllowed(String allowed, URL url) { String[] protocols = allowed.split(","); // Loop over http, https, etc for(String protocol : protocols) { - if (url != null) { - if(urlProtocol.trim().equalsIgnoreCase(protocol.trim())) { - return true; - } + if(urlProtocol.trim().equalsIgnoreCase(protocol.trim())) { + return true; } } // Allow exception for file: demo/assets