7 Replies Latest reply on Jun 21, 2012 4:39 PM by Christian Sadilek

    More NullPointerExceptions

    Matthew Casperson Newbie

      The QualifyingMarshallerWrapper.doNotNullDemarshall() method is throwing a NullPointerException because o is referencing a JSONString:

       

        @Override
        public T doNotNullDemarshall(EJValue o, MarshallingSession ctx) {
      
           // .... DOH! o is a string, which means obj is null    
      
           EJObject obj = o.isObject();
      
           // NPE here   
      
          String objId = obj.get(SerializationParts.OBJECT_ID).isString().stringValue();
           
           // ...
        }