Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Open
   Priority: Major

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Trent McClenahan

    Created: Wed, 4 Aug 2004 7:23 PM
    Updated: Wed, 4 Aug 2004 7:23 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]

Reply via email to