Index: src/main/java/java/net/URL.java =================================================================== --- src/main/java/java/net/URL.java (revision 428654) +++ src/main/java/java/net/URL.java (working copy) @@ -398,7 +398,12 @@ host = "[" + host + "]"; //$NON-NLS-1$ //$NON-NLS-2$ } - this.protocol = protocol; + if (protocol != null){ + this.protocol = protocol; + } else { + throw new NullPointerException(Msg.getString("K00b3", protocol)); //$NON-NLS-1$ + } + this.host = host; this.port = port;