Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318756 - [remoteservices] RegistryShareObject.getAllRemoteServicesReference NPE
Summary: [remoteservices] RegistryShareObject.getAllRemoteServicesReference NPE
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.remoteservices (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-02 12:53 EDT by Scott Lewis CLA
Modified: 2011-08-09 00:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Lewis CLA 2010-07-02 12:53:32 EDT
There is an NPE in RegistrySharedObject in the case when no remote services have been received:

java.lang.NullPointerException
at org.eclipse.ecf.provider.remoteservice.generic.RegistrySharedObject.getAllRemoteServiceReferences(RegistrySharedObject.java:163)
at org.remotercp.ecf.consumer.test.ServiceConsumer._getService(ServiceConsumer.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105)
at java.lang.Thread.run(Thread.java:637)
Comment 1 Scott Lewis CLA 2010-07-02 13:49:17 EDT
Fix applied and released to HEAD and Release_3_3 streams...so this fix will be in ECF 3.3.1 (Release_3_3) and ECF 3.4.0 (HEAD).
Comment 2 Scott Lewis CLA 2011-08-09 00:31:10 EDT
fixed as per comment 1