DisplayTag

NPE in displaytag 1.1 when row css class is not set

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: Tag Library
  • Labels:
    None

Description

java.lang.NullPointerException
        at
org.displaytag.util.MultipleHtmlAttribute.addAllAttributesFromArray
(MultipleHtmlAttribute.java:56)
        at org.displaytag.util.MultipleHtmlAttribute.<init>
(MultipleHtmlAttribute.java:45)
        at org.displaytag.model.Row.getOpenTag(Row.java:146)
        at org.displaytag.render.HtmlTableWriter.writeRowOpener
(HtmlTableWriter.java:246)
        at org.displaytag.render.TableWriterTemplate.writeTableBody
(TableWriterTemplate.java:346)
        at org.displaytag.render.TableWriterTemplate.writeTable
(TableWriterTemplate.java:133)
        at org.displaytag.render.HtmlTableWriter.writeTable
(HtmlTableWriter.java:643)
        at org.displaytag.tags.TableTag.writeHTMLData(TableTag.java:
1549)
        at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1218)

Activity

Hide
Harry added a comment -
I had this problem as well and found, that the TableTag.properties file is missing in the distribution jar. Therefore it doesn't find all the properties - adding all the missing properties to the local displaytag.properties.
Show
Harry added a comment - I had this problem as well and found, that the TableTag.properties file is missing in the distribution jar. Therefore it doesn't find all the properties - adding all the missing properties to the local displaytag.properties.
Hide
fabrizio giustina added a comment -
test and fix in svn for 1.1.1
Show
fabrizio giustina added a comment - test and fix in svn for 1.1.1

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: