Announcement Announcement Module
Collapse
No announcement yet.
NPE in VLDockingApplicationPage.createControl Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE in VLDockingApplicationPage.createControl

    Hello

    I get a NPE in VLDockingApplicationPage.createControl if a view id that was previously saved is removed from the context and my app is restarted.

    The createControl method checks for other sorts of exceptions but not NPE.

    I guess it would work if something like the this was added to createControl

    ...
    } catch (NullPointerException pce) {
    logger.warn("Error parsing workspace layout " + initialLayout + ", using defaults", pce);
    getPageDescriptor().buildInitialLayout(this);
    }


    Caused by: java.lang.NullPointerException: Dockable hailEnvironmentSummaryView not registered
    at com.vlsolutions.swing.docking.DockingDesktop.xmlGe tDockable(DockingDesktop.java:3119)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlBu ildTabbedDockableContainer(DockingDesktop.java:309 2)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlCr eateComponent(DockingDesktop.java:3017)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlBu ildSplitContainer(DockingDesktop.java:3070)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlCr eateComponent(DockingDesktop.java:3000)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlBu ildSplitContainer(DockingDesktop.java:3070)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlCr eateComponent(DockingDesktop.java:3000)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlBu ildDockingPanelNode(DockingDesktop.java:2991)
    at com.vlsolutions.swing.docking.DockingDesktop.xmlBu ildRootNode(DockingDesktop.java:2853)
    at com.vlsolutions.swing.docking.DockingDesktop.readD esktopNode(DockingDesktop.java:2835)
    at com.vlsolutions.swing.docking.DockingContext.readX ML(DockingContext.java:384)
    at org.springframework.richclient.application.docking .vldocking.VLDockingApplicationPage.createControl( VLDockingApplicationPage.java:145)
Working...
X