Message:
The following issue has been closed.
Resolver: Howard M. Lewis Ship
Date: Thu, 19 Aug 2004 3:33 PM
This appears to have been fixed as part of some other code changes.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-38
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-38
Summary: ServiceObjectProvider passes null ServiceInterface parameter when
retrieving Service
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: HiveMind
Components:
framework
Versions:
1.0
Assignee: Howard M. Lewis Ship
Reporter: Trent McClenahan
Created: Wed, 4 Aug 2004 7:23 PM
Updated: Thu, 19 Aug 2004 3:33 PM
Description:
This bug means that the service object provider throws NullPointerExceptions!
Its a pretty easy fix, currently the ServiceObjectProvider returns:
return contributingModule.getService(locator, propertyType);
However, propertyType is null, and therefore causes a NullPointerException to
be raised when the service retrieved is checked for assignment compatibility
against its service interface.
The fix is to do as the ServiceTranslator does:
return contributingModule.getService(
inputValue,
propertyType == null ? Object.class : propertyType);
This ensures that no null service interface is passed through.
Cheers,
Trent.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]