Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325428 - NPE if no client's available
Summary: NPE if no client's available
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andreas Hoegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 05:51 EDT by Holger Staudacher CLA
Modified: 2021-08-19 11:05 EDT (History)
3 users (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
patch proposal (1.93 KB, patch)
2011-09-06 07:34 EDT, Matthias Villiger CLA
zimmermann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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