[ 
https://issues.apache.org/jira/browse/TAPESTRY-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesse Kuhnert updated TAPESTRY-1253:
------------------------------------

    Fix Version/s: 4.1.2

> Meta injection throws exception unless property accessor is defined
> -------------------------------------------------------------------
>
>                 Key: TAPESTRY-1253
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1253
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 4.0.2
>            Reporter: Ilya Zverev
>             Fix For: 4.1.2
>
>
> .page:
>     <meta key="testMeta" value="123"/>
>     <inject property="testInject" object="testMeta" type="meta"/>
>     <component id="test" type="Insert">
>         <binding name="value" value="testInject"/>
>     </component>
> results in an exception:
> NullPointerException: Parameter clazz must not be null.
> Stack Trace: 
> org.apache.hivemind.util.Defense.notNull(Defense.java:41) 
> org.apache.tapestry.enhance.EnhancementOperationImpl.getClassReference(EnhancementOperationImpl.java:385)
> org.apache.tapestry.enhance.InjectMetaWorker.addObject(InjectMetaWorker.java:136)
>  
> org.apache.tapestry.enhance.InjectMetaWorker.injectMetaValue(InjectMetaWorker.java:96)
>  
> org.apache.tapestry.enhance.InjectMetaWorker.performEnhancement(InjectMetaWorker.java:62)
> ..etc...
> To avoid this exception an abstract getter method must be defined, like this:
> public abstract String getTestInject();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to