java.lang.NullPointerException
at org.displaytag.util.Href.toString(Href.java:224)
at org.displaytag.tags.TableTag.getSearchResultAndNavigation(TableTag.java:1496)
at org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1128)
at org.displaytag.tags.TableTag.doEndTag(TableTag.java:874)
at org.apache.jsp.userList_jsp._jspService(userList_jsp.java:263)
I have debbuged and I have found a problem in toString method in Href class.
Set parameterSet = this.parameters.entrySet(); Iterator iterator = parameterSet.iterator();
while (iterator.hasNext())
{
Map.Entry entry = (Map.Entry) iterator.next();Object key = entry.getKey(); Object value = entry.getValue();
if (value.getClass().isArray()) ..... }
When value is null the NullPointerException is throw.
When export is true I have a null value, the key is d-xxxx-xo, I noticed that this parameter is for sorting.
But if export is false, this parameter, and others like d-xxxx-xs or d-xxxx-e, are not in parameterSet so I don't get the exception.
For now I have fixed the problem checking for null value: if ((value != null) && (value.getClass().isArray()))
Thanks, Claudio
_________________________________________________________________
Consigue aqu� las mejores y mas recientes ofertas de trabajo en Am�rica Latina y USA: http://latam.msn.com/empleos/
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

