From e963fea9dcf32aad77e5d3a1d2b414e14b8da6af Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Fri, 21 Sep 2012 17:38:01 +0800 Subject: [PATCH] Fixed NullPointerException when create HTML with null HTML extension --- org.adempiere.base/src/org/compiere/print/ReportEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/print/ReportEngine.java b/org.adempiere.base/src/org/compiere/print/ReportEngine.java index c359c9fed9..e4814452f6 100644 --- a/org.adempiere.base/src/org/compiere/print/ReportEngine.java +++ b/org.adempiere.base/src/org/compiere/print/ReportEngine.java @@ -703,12 +703,12 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) { XhtmlDocument doc = new XhtmlDocument(); doc.appendBody(table); - if (extension.getStyleURL() != null) + if (extension != null && extension.getStyleURL() != null) { link l = new link(extension.getStyleURL(), "stylesheet", "text/css"); doc.appendHead(l); } - if (extension.getScriptURL() != null) + if (extension != null && extension.getScriptURL() != null) { script jslink = new script(); jslink.setLanguage("javascript");