Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2297

Update for absent document may throw NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.0.9, 1.1.3
    • core, mongomk
    • None

    Description

      An update for an absent document will throw a NPE on MongoDocumentStore:

      java.lang.NullPointerException
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
      	at org.apache.jackrabbit.oak.plugins.document.util.StringValue.<init>(StringValue.java:35)
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.addToCache(MongoDocumentStore.java:1031)
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.applyToCache(MongoDocumentStore.java:986)
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.update(MongoDocumentStore.java:765)
      

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: