incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jnee...@apache.org
Subject svn commit: r714046 - /incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
Date Fri, 14 Nov 2008 15:48:39 GMT
Author: jneeraj
Date: Fri Nov 14 07:48:38 2008
New Revision: 714046

URL: http://svn.apache.org/viewvc?rev=714046&view=rev
Log:
IMPERIUS-19: Check for null before inserting into instance map - patches by David Wood

Modified:
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java

Modified: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java?rev=714046&r1=714045&r2=714046&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
(original)
+++ incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
Fri Nov 14 07:48:38 2008
@@ -247,7 +247,13 @@
 				String fieldName = f.getName();
 
 				// Insert into map
-				instanceMemberValues.put(fieldName, value);
+				if (value != null) { // value is not null
+				    instanceMemberValues.put(fieldName, value);
+				}   else { //value is null so insert empty object
+				    // in case the policy part of the action would
+				    // like to set it to something
+				    instanceMemberValues.put(fieldName, new Object());
+				}    
 			}
 		} catch (ClassNotFoundException e) {
 			e.printStackTrace();



Mime
View raw message