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

Bug 318756

Summary: [remoteservices] RegistryShareObject.getAllRemoteServicesReference NPE
Product: [RT] ECF Reporter: Scott Lewis <slewis>
Component: ecf.remoteservicesAssignee: ecf.core-inbox <ecf.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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