* NPE if classname not set for jasperreport process
* catch throwable to avoid freezing of application.
This commit is contained in:
parent
5e08ba120a
commit
2e177ba3e6
|
@ -334,7 +334,7 @@ public class ProcessCtl implements Runnable
|
||||||
rs.close();
|
rs.close();
|
||||||
pstmt.close();
|
pstmt.close();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure") + " " + e.getLocalizedMessage(), true);
|
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure") + " " + e.getLocalizedMessage(), true);
|
||||||
unlock();
|
unlock();
|
||||||
|
@ -361,7 +361,7 @@ public class ProcessCtl implements Runnable
|
||||||
boolean isJasper = false;
|
boolean isJasper = false;
|
||||||
if (JasperReport != null && JasperReport.trim().length() > 0) {
|
if (JasperReport != null && JasperReport.trim().length() > 0) {
|
||||||
isJasper = true;
|
isJasper = true;
|
||||||
if (m_pi.getClassName().equals(JASPER_STARTER_CLASS)) {
|
if (JASPER_STARTER_CLASS.equals(m_pi.getClassName())) {
|
||||||
m_pi.setClassName(null);
|
m_pi.setClassName(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue