harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r571121 - /harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java
Date Thu, 30 Aug 2007 12:00:14 GMT
Author: tellison
Date: Thu Aug 30 05:00:13 2007
New Revision: 571121

URL: http://svn.apache.org/viewvc?rev=571121&view=rev
Log:
XMLDecoding empty String values should be empty string not null.

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java?rev=571121&r1=571120&r2=571121&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/XMLDecoder.java
Thu Aug 30 05:00:13 2007
@@ -355,7 +355,7 @@
             if ("null".equals(tag)) {
                 return null;
             } else if ("string".equals(tag)) {
-                return value;
+                return value == null ? "" : value;
             } else if ("class".equals(tag)) {
                 return classForName(value);
             } else if ("boolean".equals(tag)) {



Mime
View raw message