harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r504154 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java
Date Tue, 06 Feb 2007 14:27:43 GMT
Author: apetrenko
Date: Tue Feb  6 06:27:42 2007
New Revision: 504154

URL: http://svn.apache.org/viewvc?view=rev&rev=504154
Log:
Updated patch for HARMONY-2602 "[classlib][swing][plaf] javax.swing.plaf.basic.BasicTextAreaUI.create(null)
doesn't throw NPE"

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java?view=diff&rev=504154&r1=504153&r2=504154
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTextAreaUI.java
Tue Feb  6 06:27:42 2007
@@ -55,10 +55,6 @@
     }
 
     public View create(final Element element) {
-        if (element == null) {
-            throw new NullPointerException();
-        }
-
         Document doc = element.getDocument();
         Boolean i18n = (Boolean)doc.getProperty(StringConstants.BIDI_PROPERTY);
         if (i18n.booleanValue()) {



Mime
View raw message