changeset 7698:467a0c21790b

8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables Reviewed-by: jchen, prr
author jgodinez
date Fri, 26 Jul 2013 15:08:49 -0700
parents a8b9df782017
children 56c6f9a9653d 1c48544c3da9
files src/windows/classes/sun/print/Win32PrintService.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/sun/print/Win32PrintService.java	Fri Jul 26 21:18:42 2013 +0400
+++ b/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;
         }