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

Ben Sommerville updated TAPESTRY-1314:
--------------------------------------

    Attachment: TAP-1314.patch

Patch to prevent NPE.
Changes construction of ExceptionInfo so that message is stored as empty string 
when input message is null.  This means the ExceptionInfo.getMessage() is 
always non null, thus preventing NPE when examining it.


> ExceptionAnalyzer throws NPE when an exception message is null
> --------------------------------------------------------------
>
>                 Key: TAPESTRY-1314
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1314
>             Project: Tapestry
>          Issue Type: Bug
>          Components: IoC Container
>    Affects Versions: 5.0.3
>         Environment: Windows XP, Java 5,  JBoss 5, 
>            Reporter: Ben Sommerville
>            Priority: Minor
>         Attachments: TAP-1314.patch
>
>
> When analyzing exceptions if one of the exceptions in the stack has a null 
> message the the exception analyzer throws a NPE (at ExceptionAnalyzerImpl:87)
> To reproduce, cause a NPE when binding a property on a page. 
> E.g. In template have  <t:textField value="foo.a" > where foo is null in the 
> page class.

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