Pablo - 2007-10-11

when I try to access a page with a displaytag, that jsp appears in blank and the following error is showed:
java.lang.NullPointerException
at org.displaytag.model.RowSorter.checkNullsAndCompare(RowSorter.java:176)
at org.displaytag.model.RowSorter.compare(RowSorter.java:144)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at org.displaytag.model.TableModel.sortRowList(TableModel.java:451)
at org.displaytag.model.TableModel.sortFullList(TableModel.java:486)
at org.displaytag.tags.TableTag.setupViewableData(TableTag.java:1514)
at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1185)
...

I have checked that error is produced because the attribute comparator of RowSorter is null .That happens when, the table is drawn for first time and the attribute rowNumber of TableTag isn't equal to 1 (the header row isn't drawn so the comparator is null or I think so). But this error doesn't appear always for the same page and the same data.
When it doesn't work, reloading the page it works again.

I use struts, spring and hibernate and the version 1.1 of displaytags but i have proved with the version 1.1.1 too. I hope that someone can help me. Thanks.