Description
Mistake in the operator precdence causes NPE using test shown below:
import java.net.URLPermission;
import java.security.PermissionCollection;
import java.security.Permissions;
public class Test {
public static void main(String[] args) {
PermissionCollection perms = new Permissions();
perms.add(new URLPermission("http:*", "*:*"));
System.out.println(perms);
}
}
import java.net.URLPermission;
import java.security.PermissionCollection;
import java.security.Permissions;
public class Test {
public static void main(String[] args) {
PermissionCollection perms = new Permissions();
perms.add(new URLPermission("http:*", "*:*"));
System.out.println(perms);
}
}