jdk/src/java.desktop/share/classes/javax/print/PrintServiceLookup.java
changeset 27062 1ec810a4c3ec
parent 25859 3317bb8137f4
child 35667 ed476aba94de
--- 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();