Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-636

Using Element.forceAttribute() with a null value can cause a later NPE during rendering under some circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.3
    • 5.1.0.3
    • tapestry-core
    • None

    Description

      An unexpected application exception has occurred.

      • java.lang.NullPointerException
      • org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
      • org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
      • org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
      • org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
      • org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
      • org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
      • org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
      • $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)

      The real question is: how can the value ever be null? Adding an attribute that's null, or overriding an attribute to null, should remove it from the list.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: