java.lang.NullPointerException

Atlassian JIRA | Sashidaran Jayaraman [Atlassian] | 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

    h5. Bug Description When you are importing word document using Office Connector's Doc Import function, if the space does not have a homepage set, you will get the following stacktrace: {code} Cause java.lang.NullPointerException at com.benryan.webwork.WordImportAction.doFileImport(WordImportAction.java:312) Stack Trace:[hide] java.lang.NullPointerException at com.benryan.webwork.WordImportAction.doFileImport(WordImportAction.java:312) at com.benryan.webwork.WordImportAction.executeFileImport(WordImportAction.java:146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302) {code} h5. Steps to reproduce h6. In Confluence versions above 3.2 # First, ensure that the space that you are using does not have a homepage set. # Next, go to any page, and use the "Import Word Document" feature # Upload the word document you want to import # Use the default setting: {code:title=Example} Root page title: Test Where to import: Import as a new page in the current space Title conflicts: Rename imported pages if page name already exists {code} # Click {{Import}} button # You will get the Oops page with the stacktrace mentioned above h6. In Confluence 3.2 and below # First, ensure that the space that you are using does not have a homepage set. # Next, go to any page, and use the "Doc Import" feature # Select the word document you want to import # Click the {{Advanced}} button # Use the following setting: {code:title=Example} Root page title: Test Where to import: Import as a new page in the current space Title conflicts: Imported pages become new versions of existing pages with the same title {code} # Click {{Import}} button # You will get the Oops page with the stacktrace mentioned above h5. Screenshot # [^DocImportBug.png] h5. Workaround # Please set a homepage for the space. For more information on how to do this, refer to the following documentation: #* http://confluence.atlassian.com/display/DOC/Editing+Space+Details

    Atlassian JIRA | 7 years ago | Sashidaran Jayaraman [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.benryan.webwork.WordImportAction.doFileImport()
    2. com.benryan.webwork
      WordImportAction.doFileImport
      1. com.benryan.webwork.WordImportAction.doFileImport(WordImportAction.java:312)
      1 frame