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");