changeset 3709:1acdde062e92

6850806: NPE exception throws in PrintServce.getSupportedAttributeValues Reviewed-by: igor, prr
author jgodinez
date Fri, 18 Feb 2011 13:47:07 -0800
parents 059b56058cad
children fa6547fa57e6 864b669d54d8
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 Feb 18 12:04:36 2011 -0800
+++ b/src/windows/classes/sun/print/Win32PrintService.java	Fri Feb 18 13:47:07 2011 -0800
@@ -1325,7 +1325,7 @@
             }
             if (trays != null) {
                 System.arraycopy(trays, 0, arr,
-                                 mediaSizeNames.length, trays.length);
+                                 len - trays.length, trays.length);
             }
             return arr;
         } else if (category == MediaPrintableArea.class) {