changeset 19012:c8e01130fe04

8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables Reviewed-by: jchen, prr
author jgodinez
date Fri, 26 Jul 2013 15:08:49 -0700
parents b738ae865548
children 7854d8c8ec5a 81d6c32ee6b8
files jdk/src/windows/classes/sun/print/Win32PrintService.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }