java.lang.NullPointerException

XWiki.org JIRA | Patrice Lamarque | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Using the Rendering module outside of XWiki (http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule#HUsingtheRenderingmoduleoutsideofXWiki) It looks like a NPE occurs when passing an attachment link input such as : {code} [[text>>attach:img.png]] {code} Stackrace is : {noformat} java.lang.NullPointerException at org.xwiki.rendering.internal.renderer.xhtml.DefaultXHTMLLinkRenderer.beginExternalLink(DefaultXHTMLLinkRenderer.java:194) at org.xwiki.rendering.internal.renderer.xhtml.DefaultXHTMLLinkRenderer.beginLink(DefaultXHTMLLinkRenderer.java:161) at org.xwiki.rendering.internal.renderer.xhtml.XHTMLChainingRenderer.beginLink(XHTMLChainingRenderer.java:263) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163) at org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener.beginLink(EmptyBlockChainingListener.java:143) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163) at org.xwiki.rendering.listener.chaining.BlockStateChainingListener.beginLink(BlockStateChainingListener.java:305) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163) at org.xwiki.rendering.block.LinkBlock.before(LinkBlock.java:94) at org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:65) at org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:68) at org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:68) at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:59) at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:47) at org.xwiki.rendering.internal.converter.DefaultConverter.convert(DefaultConverter.java:56) {noformat}

    XWiki.org JIRA | 7 years ago | Patrice Lamarque
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.xwiki.rendering.internal.renderer.xhtml.DefaultXHTMLLinkRenderer.beginExternalLink()
    2. org.xwiki.rendering
      DefaultConverter.convert
      1. org.xwiki.rendering.internal.renderer.xhtml.DefaultXHTMLLinkRenderer.beginExternalLink(DefaultXHTMLLinkRenderer.java:194)
      2. org.xwiki.rendering.internal.renderer.xhtml.DefaultXHTMLLinkRenderer.beginLink(DefaultXHTMLLinkRenderer.java:161)
      3. org.xwiki.rendering.internal.renderer.xhtml.XHTMLChainingRenderer.beginLink(XHTMLChainingRenderer.java:263)
      4. org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163)
      5. org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener.beginLink(EmptyBlockChainingListener.java:143)
      6. org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163)
      7. org.xwiki.rendering.listener.chaining.BlockStateChainingListener.beginLink(BlockStateChainingListener.java:305)
      8. org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:163)
      9. org.xwiki.rendering.block.LinkBlock.before(LinkBlock.java:94)
      10. org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:65)
      11. org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:68)
      12. org.xwiki.rendering.block.AbstractFatherBlock.traverse(AbstractFatherBlock.java:68)
      13. org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:59)
      14. org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:47)
      15. org.xwiki.rendering.internal.converter.DefaultConverter.convert(DefaultConverter.java:56)
      15 frames