jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1127924 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Thu, 26 May 2011 14:07:42 GMT
Author: stefan
Date: Thu May 26 14:07:42 2011
New Revision: 1127924

URL: http://svn.apache.org/viewvc?rev=1127924&view=rev
Log:
MicroKernel prototype (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1127924&r1=1127923&r2=1127924&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Thu May 26 14:07:42 2011
@@ -322,6 +322,9 @@ public class MicroKernelImpl implements 
             DiffHandler handler = new DiffHandler() {
 
                 public void addNode(String nodeName, String jsonObject) throws Exception
{
+                    if (jsonObject == null) {
+                        throw new Exception("illegal json object format: " + nodeName);
+                    }
                     Object obj = jsonParser.parse(jsonObject, containerFactory);
                     if (!(obj instanceof Map)) {
                         throw new Exception("illegal json object format: " + jsonObject);



Mime
View raw message