jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1163597 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Date Wed, 31 Aug 2011 12:11:34 GMT
Author: mduerig
Date: Wed Aug 31 12:11:33 2011
New Revision: 1163597

URL: http://svn.apache.org/viewvc?rev=1163597&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
observation: null guard

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java?rev=1163597&r1=1163596&r2=1163597&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Wed Aug 31 12:11:33 2011
@@ -291,6 +291,10 @@ public class SubscriptionImpl implements
         private EventBundle createEventBundle(JSONObject jsonObject) throws RepositoryException
{
             String revisionId = getString(jsonObject, "id", false);
             String msg = getString(jsonObject, "msg", true);
+            if (msg == null) {
+                // Skip alien commits
+                return null;
+            }
             CommitMessage commitMessage = CommitMessage.parse(msg);
             long timeStamp = getLong(jsonObject, "ts");
             String changes = getString(jsonObject, "changes", false);



Mime
View raw message