Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033226 | Openbravo ERP | A. Platform | public | 2016-06-11 21:36 | 2016-06-20 13:06 | |||||||
Reporter | guillermogil | |||||||||||
Assigned To | caristu | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR16Q1.4 | Fixed in Version | 3.0PR16Q1.4 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | Production - QA Approved | |||||||||||
Regression date | 2015-10-27 | |||||||||||
Regression introduced in release | 3.0PR16Q1 | |||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0033226: ConcatPDFReport has a null pointer exception if is used without reportConfiguration parameter | |||||||||||
Description | ConcatPDFReport has a null pointer exception if is used without reportConfiguration parameter Method concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream) is creating a null pointer exception | |||||||||||
Steps To Reproduce | Create a call on concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream) Without any SimplePdfExporterConfiguration | |||||||||||
Proposed Solution | On ReportingUtils.java: public static void concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream, SimplePdfExporterConfiguration reportConfiguration) throws JRException { JRPdfExporter exporter = new JRPdfExporter(); SimpleOutputStreamExporterOutput exporterOutput = new SimpleOutputStreamExporterOutput( outputStream); SimplePdfExporterConfiguration configuration = reportConfiguration != null ? reportConfiguration : new SimplePdfExporterConfiguration(); reportConfiguration.setCreatingBatchModeBookmarks(createBookmarks); exporter.setConfiguration(configuration); exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList)); exporter.setExporterOutput(exporterOutput); exporter.exportReport(); } Line: reportConfiguration.setCreatingBatchModeBookmarks(createBookmarks); Should be: configuration.setCreatingBatchModeBookmarks(createBookmarks); | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-06-13 09:49 | alostale | Type | defect => backport | |||||||||
2016-06-13 09:49 | alostale | Target Version | => 3.0PR16Q1.4 | |||||||||
2016-06-13 11:00 | hgbot | Checkin | ||||||||||
2016-06-13 11:00 | hgbot | Note Added: 0087192 | ||||||||||
2016-06-13 11:00 | hgbot | Status | scheduled => resolved | |||||||||
2016-06-13 11:00 | hgbot | Resolution | open => fixed | |||||||||
2016-06-13 11:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q1.4/rev/fe177b6118d7d599ab1fbc21fc7750f8f4dddead [^] | |||||||||
2016-06-13 11:21 | caristu | Review Assigned To | => alostale | |||||||||
2016-06-20 13:06 | alostale | Note Added: 0087668 | ||||||||||
2016-06-20 13:06 | alostale | Status | resolved => closed | |||||||||
2016-06-20 13:06 | alostale | Fixed in Version | => 3.0PR16Q1.4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|