[jboss-user] [JBoss Microcontainer Development] New message: "Re: NPE on ungetValue()"

Kabir Khan do-not-reply at jboss.com
Thu Feb 18 06:19:02 EST 2010


User development,

A new message was posted in the thread "NPE on ungetValue()":

http://community.jboss.org/message/526953#526953

Author  : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com

Message:
--------------------------------------------------------------
The problem is actually, when using contextual injection and InjectOption.OPTIONAL
a) That AbstractInjectionValueMetaData.item is null in AIVMD.ungetValue() since it only gets set when InjectOption.STRICT is used (in describeVisit())
b) That getUnderlyingValue() returns null in AbstractDependencyValueMetaData in its ungetValue() which also gets called
 
I have added null checks in the ungetValue() methods.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526953#526953




More information about the jboss-user mailing list