8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables

Reviewed-by: jchen, prr
This commit is contained in:
Jennifer Godinez 2013-07-26 15:08:49 -07:00
parent 4a42ba3816
commit 288fefed14

View File

@ -445,7 +445,7 @@ public class Win32PrintService implements PrintService, AttributeUpdater,
initMedia();
if ((mediaSizeNames == null) && (mediaSizeNames.length == 0)) {
if ((mediaSizeNames == null) || (mediaSizeNames.length == 0)) {
return null;
}