This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 2da5c7d3e Fix PriCat Excel upload NullPointerException (OFBIZ-12325)
(#235)
2da5c7d3e is described below
commit 2da5c7d3e5a19ac256906c6a21561cb40b37496f
Author: Rehan Khan <[email protected]>
AuthorDate: Fri May 15 15:45:54 2026 +0530
Fix PriCat Excel upload NullPointerException (OFBIZ-12325) (#235)
Properly assign the instantiated HtmlReport to the 'report' field in
AbstractReportThread.java inside the initHtmlReport overloads. This prevents
NullPointerException during Thread initialization when calling getReport().
---
.../main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java
b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java
index 757d9d164..82e91f777 100644
--- a/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java
+++ b/pricat/src/main/java/org/apache/ofbiz/htmlreport/AbstractReportThread.java
@@ -165,6 +165,7 @@ public abstract class AbstractReportThread extends Thread
implements InterfaceRe
HtmlReport report = HtmlReport.getInstance(request, response);
report.setParamThread(getUUID().toString());
+ this.report = report;
}
/**
@@ -174,6 +175,7 @@ public abstract class AbstractReportThread extends Thread
implements InterfaceRe
HtmlReport report = HtmlReport.getInstance(request, response,
writeHtml, isTransient);
report.setParamThread(getUUID().toString());
+ this.report = report;
}
/**
@@ -188,6 +190,7 @@ public abstract class AbstractReportThread extends Thread
implements InterfaceRe
String logFileName) {
HtmlReport report = HtmlReport.getInstance(request, response,
writeHtml, isTransient, logFileName);
report.setParamThread(getUUID().toString());
+ this.report = report;
}
/**