Index: C:/WS/trunk/modules/swing/src/main/java/common/javax/swing/text/StyledEditorKit.java =================================================================== --- C:/WS/trunk/modules/swing/src/main/java/common/javax/swing/text/StyledEditorKit.java (revision 454651) +++ C:/WS/trunk/modules/swing/src/main/java/common/javax/swing/text/StyledEditorKit.java (working copy) @@ -348,7 +348,7 @@ protected void createInputAttributes(final Element element, final MutableAttributeSet set) { if (element == null || set == null) { - return; + throw new NullPointerException(); } AttributeSet as = element.getAttributes(); set.removeAttributes(set);