tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierce Wetter (JIRA)" <j...@apache.org>
Subject [jira] Created: (TAP5-1043) Beans with null Calendar values throw exceptions (fix included)
Date Wed, 03 Mar 2010 23:24:27 GMT
Beans with null Calendar values throw exceptions (fix included)

                 Key: TAP5-1043
                 URL: https://issues.apache.org/jira/browse/TAP5-1043
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.2.0
            Reporter: Pierce Wetter

Using a Bean Display Grid with a bean with a null calendar throws a null pointer exception.


Fix is trivial, simple check that the value is not null before calling getTime(). 

public Date getCalendarDate() 
        Calendar calendar = (Calendar) context.getPropertyValue();
        if (calendar!=null)
                return calendar.getTime();
        return null;

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

View raw message