Index: src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java =================================================================== --- src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java (revision 490924) +++ src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java (working copy) @@ -56,8 +56,9 @@ public View create(final Element element) { if (element == null) { - return null; + throw new NullPointerException(); } + Document doc = element.getDocument(); Boolean i18n = (Boolean)doc.getProperty(StringConstants.BIDI_PROPERTY); if (i18n.booleanValue()) {