Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-452

ChildData.getData() can be null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.11.1
    • 4.1.0
    • Client
    • None

    Description

      Curator client tries to make ObjectMapper to parse null (ChildData.getData() can be null).

      java.lang.NullPointerException
       at org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:604)
       at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1973)
       at org.apache.curator.x.discovery.details.JsonInstanceSerializer.deserialize(JsonInstanceSerializer.java:50)
       at org.apache.curator.x.discovery.details.ServiceCacheImpl.addInstance(ServiceCacheImpl.java:193)
       at org.apache.curator.x.discovery.details.ServiceCacheImpl.start(ServiceCacheImpl.java:96)
       at org.apache.curator.x.discovery.details.ServiceProviderImpl.start(ServiceProviderImpl.java:67)

      Attachments

        Issue Links

          Activity

            People

              randgalt Jordan Zimmerman
              egrs Egor Ryashin
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: