You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Pierce Wetter (JIRA)" <ji...@apache.org> on 2010/03/04 00:24:27 UTC

[jira] Created: (TAP5-1043) Beans with null Calendar values throw exceptions (fix included)

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. 

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 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.


[jira] Closed: (TAP5-1043) PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko closed TAP5-1043.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.0

> PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null
> ----------------------------------------------------------------------------------------
>
>                 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
>            Assignee: Igor Drobiazko
>             Fix For: 5.2.0
>
>
> 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 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.


[jira] Closed: (TAP5-1043) PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko closed TAP5-1043.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.0

> PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null
> ----------------------------------------------------------------------------------------
>
>                 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
>            Assignee: Igor Drobiazko
>             Fix For: 5.2.0
>
>
> 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 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.


[jira] Updated: (TAP5-1043) PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko updated TAP5-1043:
---------------------------------

    Summary: PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null  (was: Beans with null Calendar values throw exceptions (fix included))

> PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null
> ----------------------------------------------------------------------------------------
>
>                 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
>            Assignee: Igor Drobiazko
>
> 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 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.


[jira] Updated: (TAP5-1043) PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko updated TAP5-1043:
---------------------------------

    Summary: PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null  (was: Beans with null Calendar values throw exceptions (fix included))

> PropertyDisplayBlocks causes NullPointerException when property of type Calendar is null
> ----------------------------------------------------------------------------------------
>
>                 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
>            Assignee: Igor Drobiazko
>
> 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 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.


[jira] Assigned: (TAP5-1043) Beans with null Calendar values throw exceptions (fix included)

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1043:
------------------------------------

    Assignee: Igor Drobiazko

> 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
>            Assignee: Igor Drobiazko
>
> 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 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.


[jira] Assigned: (TAP5-1043) Beans with null Calendar values throw exceptions (fix included)

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1043:
------------------------------------

    Assignee: Igor Drobiazko

> 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
>            Assignee: Igor Drobiazko
>
> 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 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.