[jboss-dev] Optional @Inject
Kabir Khan
kabir.khan at jboss.com
Wed Feb 17 12:40:56 EST 2010
it looks like the get/unget stuff you did which I am not familiar with?
@SuppressWarnings({"deprecation"})
public Object ungetValue(TypeInfo info, ClassLoader cl) throws Throwable
{
if (getUnderlyingValue() == null)
{
ControllerContext lookup = item.getControllerContext(context.getController()); // 275
if (lookup != null)
{
ungetTarget(context, lookup);
return null;
}
}
return super.ungetValue(info, cl);
}
On 17 Feb 2010, at 17:34, Ales Justin wrote:
> Aha, I see --- missed the attachment at first look.
>
> This is a bug introduced in Kernel 2.2.x -- with new qualifiers handling.
> Simple null check should fix it -- Kabir. ;-)
>
> On Feb 17, 2010, at 6:25 PM, Rémy Maucherat wrote:
>
>> java.lang.NullPointerException
>> at org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData.ungetValue(AbstractInjectionValueMetaData.java:275)
>
More information about the jboss-development
mailing list