You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2009/05/15 08:16:45 UTC
[jira] Resolved: (WICKET-2276) isComponent in BaseWicketTester
contains possible nullpointer exception
[ https://issues.apache.org/jira/browse/WICKET-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-2276.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.4-RC5
Assignee: Juergen Donnerstag
thanks
> isComponent in BaseWicketTester contains possible nullpointer exception
> -----------------------------------------------------------------------
>
> Key: WICKET-2276
> URL: https://issues.apache.org/jira/browse/WICKET-2276
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC4
> Reporter: Robert Dahlström
> Assignee: Juergen Donnerstag
> Priority: Minor
> Fix For: 1.4-RC5
>
>
> When attempting to verify if a component exists, attempting to unit test a panel, the tester.assertComponent() call fails due to a nullpointer.
> This occurs when isComponent() in BaseWicketTester is called and fails to find a component from the last rendered page.
> Then the component.getClass() in the following line will trigger the nullpointer exception.
> A very simple fix would be to add a null check before attempting to check the type of the component to be able to provide a better error message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.