streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sblack...@apache.org
Subject [3/5] incubator-streams git commit: this ensures metadata isn't a null object
Date Fri, 04 Sep 2015 18:19:44 GMT
this ensures metadata isn't a null object


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/9dc44a43
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/9dc44a43
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/9dc44a43

Branch: refs/heads/master
Commit: 9dc44a43bd6f97e4261a84fe47a73fefd91f5ef8
Parents: 93257d0
Author: Steve Blackmon (@steveblackmon) <sblackmon@apache.org>
Authored: Fri Aug 28 14:51:23 2015 -0500
Committer: Steve Blackmon (@steveblackmon) <sblackmon@apache.org>
Committed: Fri Aug 28 14:51:23 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/streams/core/StreamsDatum.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9dc44a43/streams-core/src/main/java/org/apache/streams/core/StreamsDatum.java
----------------------------------------------------------------------
diff --git a/streams-core/src/main/java/org/apache/streams/core/StreamsDatum.java b/streams-core/src/main/java/org/apache/streams/core/StreamsDatum.java
index af016d1..5654240 100644
--- a/streams-core/src/main/java/org/apache/streams/core/StreamsDatum.java
+++ b/streams-core/src/main/java/org/apache/streams/core/StreamsDatum.java
@@ -32,11 +32,11 @@ import java.util.Map;
 public class StreamsDatum implements Serializable {
 
     public StreamsDatum(Object document) {
-        this(document, null, null, null, null);
+        this(document, null, null, null, new HashMap<String, Object>());
     }
 
     public StreamsDatum(Object document, String id) {
-        this(document, id, null, null, null);
+        this(document, id, null, null, new HashMap<String, Object>());
     }
 
     public StreamsDatum(Object document, BigInteger sequenceid) {


Mime
View raw message