[jboss-dev] Optional @Inject

Kabir Khan kabir.khan at jboss.com
Wed Feb 17 13:14:13 EST 2010


Forget that, I confused that with get/ungetTarget()
On 17 Feb 2010, at 17:40, Kabir Khan wrote:

> 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)
>> 
> 
> 
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development





More information about the jboss-development mailing list