[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] nullpointer on the first start of product

hi,

when I start my exported product the first time I sometimes get a 
Nullpointer-exception. This excpetion is thrown in the finally block of the 
following method in my application-class:

 public Object run(Object args) throws Exception
 {
  Display display = PlatformUI.createDisplay();

  try
  {
   int returnCode = PlatformUI.createAndRunWorkbench(display,
     new ApplicationWorkbenchAdvisor());
   if (returnCode == PlatformUI.RETURN_RESTART)
   {
    return IPlatformRunnable.EXIT_RESTART;
   }
   return IPlatformRunnable.EXIT_OK;
  } finally
  {
   display.dispose();
  }
 }

When I start the programm for the 2nd time everything works fine.

Has somebody an idea?

-- 
Joachim