Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in StandardXRoadConsumerMessageExtractor #29

Open
roosiaar opened this issue Feb 3, 2018 · 0 comments
Open

NullPointerException in StandardXRoadConsumerMessageExtractor #29

roosiaar opened this issue Feb 3, 2018 · 0 comments

Comments

@roosiaar
Copy link

roosiaar commented Feb 3, 2018

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)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant