Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.2.0
-
None
Description
Using a Bean Display Grid with a bean with a null calendar throws a null pointer exception.
org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks.getCalendarDate(PropertyDisplayBlocks.java:56)
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 null;
}