7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up.
Reviewed-by: dcherepanov, art
--- a/jdk/src/share/classes/java/awt/Toolkit.java Wed May 11 17:51:46 2011 +0400
+++ b/jdk/src/share/classes/java/awt/Toolkit.java Fri May 13 19:49:21 2011 +0400
@@ -1190,10 +1190,7 @@
* security manager's <code>checkPermission</code> method with a <code>
* RuntimePermission("queuePrintJob")</code> 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