details: https://code.openbravo.com/erp/devel/pi/rev/a6dc9d603212 changeset: 21234:a6dc9d603212 user: Shankar Balachandran <shankar.balachandran <at> openbravo.com> date: Thu Oct 03 13:12:47 2013 +0530 summary: Related to issue 0024584: Existing code formatting
details: https://code.openbravo.com/erp/devel/pi/rev/38abc951ac77 changeset: 21235:38abc951ac77 user: Shankar Balachandran <shankar.balachandran <at> openbravo.com> date: Thu Oct 03 13:19:33 2013 +0530 summary: fixes issue 0024584: Error when defining big decimal parameters with prompt in jasper reports e.getCause().getCause() is called only when e.getCause() is not null. diffstat: src/org/openbravo/base/secureApp/HttpSecureAppServlet.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r bfc085bc6530 -r 38abc951ac77 src/org/openbravo/base/secureApp/HttpSecureAppServlet.java --- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Thu Oct 03 01:20:08 2013 +0200 +++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Thu Oct 03 13:19:33 2013 +0530 @@ -1247,7 +1247,7 @@ jasperPrint = JasperFillManager.fillReport(jasperReport, designParameters, con); } } catch (final Exception e) { - Throwable t = e.getCause().getCause(); + Throwable t = (e.getCause() != null) ? e.getCause().getCause() : null; if (t != null) { throw new ServletException((t instanceof SQLException && t.getMessage().contains( "@NoConversionRate@")) ? t.getMessage() : e.getMessage(), e); @@ -1278,7 +1278,7 @@ HttpSession session = (HttpSession) designParameters.get("HTTP_SESSION"); if (session != null) { - session.setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); + session.setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); } HttpServletRequest request = RequestContext.get().getRequest(); ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
