labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r765256 - /labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj
Date Wed, 15 Apr 2009 16:13:04 GMT
Author: simoneg
Date: Wed Apr 15 16:13:02 2009
New Revision: 765256

URL: http://svn.apache.org/viewvc?rev=765256&view=rev
Log:
LABS-345 : fix bogus null string values for non loaded properties

Modified:
    labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj

Modified: labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj
URL: http://svn.apache.org/viewvc/labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj?rev=765256&r1=765255&r2=765256&view=diff
==============================================================================
--- labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj
(original)
+++ labs/magma/trunk/foundation-conversion/src/main/java/org/apache/magma/conversion/AddConversionInHandler.aj
Wed Apr 15 16:13:02 2009
@@ -68,8 +68,10 @@
 		Set<String> names = this.data.getPropertyNames();
 		for (String name : names) {
 			PropertyInfo property = this.data.getProperty(name);
-			Object val = this.values.get(name);
-			loadConverted(property, val);
+			if (this.values.containsKey(name)) {
+				Object val = this.values.get(name);
+				loadConverted(property, val);
+			}
 		}		
 	}
 	
@@ -142,8 +144,10 @@
 	
 	public void BeanHandler.updatedStringValue(String name) {
 		PropertyInfo property = this.data.getProperty(name);
-		Object val = this.values.get(name);
-		loadConverted(property, val);
+		if (this.values.containsKey(name)) {
+			Object val = this.values.get(name);
+			loadConverted(property, val);
+		}
 		this.explicitlySet.remove(name);
 	}
 	



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message