From bb3574328cff7dc440f02e1bf8bfc076398ef5e5 Mon Sep 17 00:00:00 2001 From: dav Date: Fri, 13 May 2011 19:49:21 +0400 Subject: [PATCH] 7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up. Reviewed-by: dcherepanov, art --- src/share/classes/java/awt/Toolkit.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/share/classes/java/awt/Toolkit.java b/src/share/classes/java/awt/Toolkit.java index c26df8612..3ac2714dc 100644 --- a/src/share/classes/java/awt/Toolkit.java +++ b/src/share/classes/java/awt/Toolkit.java @@ -1190,10 +1190,7 @@ public abstract class Toolkit { * security manager's checkPermission method with a * RuntimePermission("queuePrintJob") permission. * - * @param frame the parent of the print dialog. May be null if and only - * if jobAttributes is not null and jobAttributes.getDialog() - * returns JobAttributes.DialogType.NONE or - * JobAttributes.DialogType.COMMON. + * @param frame the parent of the print dialog. May not be null. * @param jobtitle the title of the PrintJob. A null title is equivalent * to "". * @param jobAttributes a set of job attributes which will control the -- GitLab