Skip to content

Commit

Permalink
Update ReportItemExecutor.java
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
hvbtup authored Nov 14, 2024
1 parent 199cf50 commit ab8de92
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,12 @@ protected void initializeContent(ReportElementDesign design, IContent content) {
if (content instanceof CellContent) {
CellContent cell = (CellContent) content;
RowContent row = (RowContent)cell.getParent();
int bandType = row.getBand().getBandType();
// FIXME This prevents that the report designer can override the tag type.
if (bandType == IBandContent.BAND_HEADER || bandType == IBandContent.BAND_GROUP_HEADER) {
content.setTagType("TH");
if (row.getBand() != null) {
int bandType = row.getBand().getBandType();
// FIXME This prevents that the report designer can override the tag type.
if (bandType == IBandContent.BAND_HEADER || bandType == IBandContent.BAND_GROUP_HEADER) {
content.setTagType("TH");
}
}
}
}
Expand Down

0 comments on commit ab8de92

Please sign in to comment.