Skip to content

NullPointerException in StandardXRoadConsumerMessageExtractor #29

Description

@roosiaar

With org.apache.axis2.saaj.SOAPMessageImpl there is NullPointerException at StandardXRoadConsumerMessageExtractor at RR76AndmIK response parsing:

    for (int i = 0; i < kehaNodes.getLength(); i++) {
        if (kehaNodes.item(i).getParentNode().getParentNode().equals(body)) {

. . .

First node is whitespace node where parent node is null.

It works with following modification:

      if (kehaNodes.item(i).getParentNode() != null 
         && kehaNodes.item(i).getParentNode().getParentNode() != null 
         && kehaNodes.item(i).getParentNode().getParentNode().equals(body)) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions