Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » configurer.setSaveAndRestore causes null pointer exception
configurer.setSaveAndRestore causes null pointer exception [message #439141] Wed, 02 November 2005 17:50 Go to next message
Eclipse UserFriend
Any idea why saving my workbench state, by calling
configurer.setSaveAndRestore in the WorkBenchAdvisor.initialize method
causes my a view within my app to bomb the next time I start up...
It bombs when I reference
getViewSite().getWorkbenchWindow().getActivePage() returns a null
reference... Any ideas?

Thanks,
Rob
Re: configurer.setSaveAndRestore causes null pointer exception [message #439160 is a reply to message #439141] Thu, 03 November 2005 09:09 Go to previous message
Eclipse UserFriend
Rob Bercik wrote:
> Any idea why saving my workbench state, by calling
> configurer.setSaveAndRestore in the WorkBenchAdvisor.initialize method
> causes my a view within my app to bomb the next time I start up...
> It bombs when I reference
> getViewSite().getWorkbenchWindow().getActivePage() returns a null
> reference... Any ideas?

Maybe your not in the UI thread ... try a check for null wrapped in a
Display.syncExec() ... if you get an active page, then it's to do with
UI threads.

Later,
PW
Previous Topic:close of widget exception
Next Topic:Modifying Welcome Page title
Goto Forum:
  


Current Time: Sat Nov 08 13:04:57 EST 2025

Powered by FUDForum. Page generated in 0.03022 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top