Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325428

Summary: NPE if no client's available
Product: z_Archived Reporter: Holger Staudacher <holger.staudacher>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Andreas.Hoegger, avandorp, zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
patch proposal zimmermann: iplog+

Description Holger Staudacher CLA 2010-09-16 05:51:56 EDT
The scout tooling crashes with a NPE if no scout client is available. Happens when you select a service on a server only project.
Comment 1 Arthur vD CLA 2010-09-16 07:07:34 EDT
Thank you for your bug report. Using the Eclipse Scout version available from http://scout.bsiag.com/ (3.5.2.201003171911) I can see uncaught NullPointerExceptions in the Error Log in listeners:

org.eclipse.scout.sdk.ui.wizard.services.ProcessServiceNewWizard$P_LocationPropertyListener.propertyChange(ProcessServiceNewWizard.java:152)

org.eclipse.scout.sdk.ui.wizard.services.LookupServiceNewWizard$P_LocationPropertyListener.propertyChange(LookupServiceNewWizard.java:161)

All the tooling functionality seems to be unaffected though. Or did you have any problems afterwards?
Comment 2 Holger Staudacher CLA 2010-09-16 16:48:24 EDT
Hi Arthur,
every time the error occurs an error dialog shows up. This really disrupts the workflow.

BTW: The bug happened when I was working with Andi on his machine. He will be able to reproduce it.

Regards Holger
Comment 3 Arthur vD CLA 2010-09-17 03:33:54 EDT
Interesting. I've only seen the NPEs in the Error Console, no dialogs.
Comment 4 Matthias Villiger CLA 2011-09-06 07:34:17 EDT
Created attachment 202797 [details]
patch proposal
Comment 5 Andreas Hoegger CLA 2011-09-07 10:26:06 EDT
patch applied on head.
Thank you Matthias
Comment 6 Matthias Zimmermann CLA 2011-10-10 12:31:08 EDT
shipped with scout 3.7.1