From 6307d0490961a5dc85282f2aebfe9c97c9fe579b Mon Sep 17 00:00:00 2001 From: jgodinez Date: Fri, 18 Feb 2011 13:47:07 -0800 Subject: [PATCH] 6850806: NPE exception throws in PrintServce.getSupportedAttributeValues Reviewed-by: igor, prr --- src/windows/classes/sun/print/Win32PrintService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/classes/sun/print/Win32PrintService.java b/src/windows/classes/sun/print/Win32PrintService.java index 5b2734e18..6e6088809 100644 --- a/src/windows/classes/sun/print/Win32PrintService.java +++ b/src/windows/classes/sun/print/Win32PrintService.java @@ -1325,7 +1325,7 @@ public class Win32PrintService implements PrintService, AttributeUpdater, } if (trays != null) { System.arraycopy(trays, 0, arr, - mediaSizeNames.length, trays.length); + len - trays.length, trays.length); } return arr; } else if (category == MediaPrintableArea.class) { -- GitLab