java.lang.NullPointerException JIRA | CalebJamesDeLisle | 7 years ago
  1. 0

    As of revision 27190, the parser breaks when a document is saved containing an empty html macro. This bug does not exist in 2.2 This {noformat} {{html}} {{/html}} {noformat} Causes this: {noformat} Wrapped Exception: java.lang.NullPointerException at com.xpn.xwiki.doc.XWikiDocument.getXDOM( at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedPages( at com.xpn.xwiki.doc.XWikiDocument.getUniqueWikiLinkedPages( at at at at at com.xpn.xwiki.XWiki.saveDocument( {noformat} If the html macro is wrapped in a velocity macro, then the SaveAndContinue button works and the page can be viewed as normal but the SaveAndView button makes the page not render correctly even after a refresh (bad XDOM?) This: {noformat} {{velocity}} {{html}} {{/html}} {{/velocity}} {noformat} Causes this: {noformat} Caused by: org.xwiki.rendering.parser.ParseException: Failed to parse input source at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse( at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse( at org.xwiki.rendering.macro.script.AbstractScriptMacro.parseSourceSyntax( ... 91 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.substring( at java.lang.StringBuffer.substring( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.normalizeMacroContent( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.macro( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.macroBlock( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.docElements( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.doParse( at org.wikimodel.wem.xwiki.xwiki20.javacc.XWikiScanner.parse( at org.wikimodel.wem.xwiki.xwiki20.XWikiParser.parse( at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse( ... 93 more {noformat} JIRA | 7 years ago | CalebJamesDeLisle
  2. 0
    Assign onCickListener to imageView in ExpandableListView inside getChildView.
  3. 0
    The Fragment was destroyed, and getActivity() returned null. Don't destroy the Fragment.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 1 year ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.xpn.xwiki.doc.XWikiDocument.getXDOM()
    2. com.xpn.xwiki
      1. com.xpn.xwiki.doc.XWikiDocument.getXDOM(
      2. com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedPages(
      3. com.xpn.xwiki.doc.XWikiDocument.getUniqueWikiLinkedPages(
      8. com.xpn.xwiki.XWiki.saveDocument(
      8 frames