--- a/jdk/src/java.desktop/share/classes/javax/print/PrintServiceLookup.java Tue Sep 30 17:39:04 2014 +0400
+++ b/jdk/src/java.desktop/share/classes/javax/print/PrintServiceLookup.java Sun Oct 05 10:23:13 2014 -0700
@@ -245,7 +245,7 @@
public static boolean registerService(PrintService service) {
synchronized (PrintServiceLookup.class) {
- if (service instanceof StreamPrintService) {
+ if (service == null || service instanceof StreamPrintService) {
return false;
}
ArrayList<PrintService> registeredServices = getRegisteredServices();