java.lang.NullPointerException

htmlunit | aavaliani | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NullPointerException when saving page

    htmlunit | 6 years ago | aavaliani
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.gargoylesoftware.htmlunit.html.XmlSerializer.createAttributesCopyWithClonedAttribute()
    2. HtmlUnit
      HtmlPage.save
      1. com.gargoylesoftware.htmlunit.html.XmlSerializer.createAttributesCopyWithClonedAttribute(XmlSerializer.java:210)
      2. com.gargoylesoftware.htmlunit.html.XmlSerializer.getAttributesFor(XmlSerializer.java:193)
      3. com.gargoylesoftware.htmlunit.html.XmlSerializer.printOpeningTag(XmlSerializer.java:123)
      4. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:85)
      5. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      6. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      7. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      8. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      9. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      10. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      11. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      12. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      13. com.gargoylesoftware.htmlunit.html.XmlSerializer.printXml(XmlSerializer.java:95)
      14. com.gargoylesoftware.htmlunit.html.XmlSerializer.asXml(XmlSerializer.java:75)
      15. com.gargoylesoftware.htmlunit.html.XmlSerializer.save(XmlSerializer.java:56)
      16. com.gargoylesoftware.htmlunit.html.HtmlPage.save(HtmlPage.java:2250)
      16 frames
    3. tools.test
      HtmlUnitExample.main
      1. tools.test.HtmlUnitExample.main(HtmlUnitExample.java:40)
      1 frame