You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2007/04/20 08:12:15 UTC
[jira] Resolved: (WICKET-268) NPE in ListView.renderItem(ListItem)
[ https://issues.apache.org/jira/browse/WICKET-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-268.
----------------------------------
Resolution: Cannot Reproduce
This is what i did to test it:
Index: D:/source/wicket/wicket-1.2.x/wicket-examples/src/main/java/wicket/examples/guestbook/GuestBook.java
===================================================================
--- D:/source/wicket/wicket-1.2.x/wicket-examples/src/main/java/wicket/examples/guestbook/GuestBook.java (revision 518870)
+++ D:/source/wicket/wicket-1.2.x/wicket-examples/src/main/java/wicket/examples/guestbook/GuestBook.java (working copy)
@@ -64,6 +64,7 @@
final Comment comment = (Comment)listItem.getModelObject();
listItem.add(new Label("date", new Model(comment.getDate())));
listItem.add(new MultiLineLabel("text", comment.getText()));
+ listItem.setVisible(false);
}
}).setVersioned(false);
}
the error was not shown
> NPE in ListView.renderItem(ListItem)
> ------------------------------------
>
> Key: WICKET-268
> URL: https://issues.apache.org/jira/browse/WICKET-268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.5
> Environment: jdk1.6.0, jetty-5.1.4, Windows XP Prof SP2
> Reporter: Andreas Grothe
> Fix For: 1.2.6, 1.3, 2.0
>
>
> In ListView.onRender(MarkupStream)
> 'ListItem item = (ListItem)get(Integer.toString(index));' returns null.
> Occurs if all items in ListView's list are set to setVisible(false) (works otherwise).
> This did not happen in pior versions (1.2.2 to 1.2.4).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.