8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables
authorjgodinez
Fri, 26 Jul 2013 15:08:49 -0700
changeset 19012 c8e01130fe04
parent 19011 b738ae865548
child 19013 7854d8c8ec5a
child 19014 81d6c32ee6b8
8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables Reviewed-by: jchen, prr
jdk/src/windows/classes/sun/print/Win32PrintService.java
--- a/jdk/src/windows/classes/sun/print/Win32PrintService.java	Fri Jul 26 21:18:42 2013 +0400
+++ b/jdk/src/windows/classes/sun/print/Win32PrintService.java	Fri Jul 26 15:08:49 2013 -0700
@@ -445,7 +445,7 @@
 
         initMedia();
 
-        if ((mediaSizeNames == null) && (mediaSizeNames.length == 0)) {
+        if ((mediaSizeNames == null) || (mediaSizeNames.length == 0)) {
             return null;
         }