From ab8de92fc85063eb87d6c386c94ab1413b5795d4 Mon Sep 17 00:00:00 2001 From: Henning von Bargen Date: Thu, 14 Nov 2024 13:11:23 +0100 Subject: [PATCH] Update ReportItemExecutor.java Fix NPE --- .../report/engine/executor/ReportItemExecutor.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java b/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java index 81850bc7691..29fafadea46 100644 --- a/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java +++ b/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java @@ -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"); + } } } }