8020208: NullPointerException at sun.print.Win32PrintService.getMediaPrintables
Reviewed-by: jchen, prr
This commit is contained in:
parent
4a42ba3816
commit
288fefed14
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user