[ 
https://issues.apache.org/jira/browse/TAP5-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863882#action_12863882
 ] 

Pierce Wetter commented on TAP5-1105:
-------------------------------------

This causes an NPE in BeatModelSourceImpl:computeDepth:122 because Method is 
null. 

 Object that triggered this error:

public class EdenBase extends EdenGeneralBase
{

    //~ Static fields/initializers 
-----------------------------------------------------------------

    /** Sonar pointed out that this was a magic number. Fair enough, made it a 
constant */
    public static final int DEFAULT_STRING_LENGTH = 255;

    /** UUIDs are always 36 chars long */
    public static final int UUID_LENGTH = 36;


Code that caused the NPE:

                         
model=beanModelSource.createDisplayModel(EdenBase.class,messages);


> BeanModelSource should recognize public field as properties, but doesn't
> ------------------------------------------------------------------------
>
>                 Key: TAP5-1105
>                 URL: https://issues.apache.org/jira/browse/TAP5-1105
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> Recently, Tapestry's property expression language was modified to allow 
> public fields to be treated like properties. However, using public fields in 
> a bean with the BeanEditor does not work. This may require some changes to 
> the PropertyAccess service.

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

Reply via email to