Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1545

XSLTResult throws NullPointerException

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • None
    • None

    Description

      java.lang.NullPointerException
      org.apache.struts2.views.xslt.BeanAdapter.buildChildAdapters(BeanAdapter.java:104)
      org.apache.struts2.views.xslt.AbstractAdapterNode.getChildAdapters(AbstractAdapterNode.java:126)
      org.apache.struts2.views.xslt.AbstractAdapterNode.getChildNodes(AbstractAdapterNode.java:182)
      org.apache.struts2.views.xslt.BeanAdapter.getChildNodes(BeanAdapter.java:86)
      org.apache.struts2.views.xslt.AbstractAdapterNode.getElementsByTagName(AbstractAdapterNode.java:156)
      org.apache.struts2.views.xslt.AbstractAdapterElement.hasChildNodes(AbstractAdapterElement.java:108)
      org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.nextNode(DOM2DTM.java:378)
      org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:527)
      org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:965)
      org.apache.xpath.axes.ChildIterator.nextNode(ChildIterator.java:130)
      org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:321)

      when the property getter method can not be found. This is only due to the log statement coming before the m==null guard.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ddewolf David H. DeWolf
            ddewolf David H. DeWolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment