This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7591a9c15 Fixed: PriCat Excel upload NullPointerException 
(OFBIZ-12325) (#234)
7591a9c15 is described below

commit 7591a9c150dc1e6f3cba13be36dff6df1a1e9cf6
Author: Rehan Khan <[email protected]>
AuthorDate: Fri May 15 15:44:23 2026 +0530

    Fixed: PriCat Excel upload NullPointerException (OFBIZ-12325) (#234)
    
    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 da6f5b3b5..068b05b79 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;
     }
 
     /**

Reply via email to