erpcya / adempiere

ADempiere Business Suite ERP/CRM/MFG/SCM/POS done the Bazaar way in an open and unabated fashion. Focus is on the Community that includes Subject Matter Specialists, Implementors and End-Users.
www.adempiere.net
GNU General Public License v2.0
2 stars 5 forks source link

[Bug Report] NPE al generar un reporte #44

Closed yamelsenih closed 9 months ago

yamelsenih commented 1 year ago

Bug report

Cuando se genera un reporte desde el ZK y la compañía no tiene logo asociado, da un error del tipo NPE.

===========> zkoss.handleError:1130: >>java.lang.NullPointerException
>>  at org.compiere.print.layout.LayoutEngine.createStandardHeaderFooter(LayoutEngine.java:958)
>>  at org.compiere.print.layout.LayoutEngine.layout(LayoutEngine.java:444)
>>  at org.compiere.print.layout.LayoutEngine.<init>(LayoutEngine.java:134)
>>  at org.compiere.print.ReportEngine.layout(ReportEngine.java:320)
>>  at org.compiere.print.ReportEngine.getLayout(ReportEngine.java:330)
>>  at org.compiere.print.ReportEngine.getCtx(ReportEngine.java:367)

Steps to reproduce

  1. Vaya a la ventana Compañía
  2. en la pestaña Información de Compañía elimine el logo de reportes
  3. Reinicie caché
  4. Genere un reporte del tipo detalle

Screenshot or Gif

error_en_ddh Screenshot_20230720_142541

Link to minimal reproduction

Expected behavior

Si no existe logo en la compañía debería simplemente validar y no mostrarlo

Other relevant information

Additional context

Add any other context about the problem here.

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Bug report

When a report is generated from the ZK and the company does not have an associated logo, it gives an NPE type error.

============> zkoss.handleError:1130: >>java.lang.NullPointerException
>> at org.compiere.print.layout.LayoutEngine.createStandardHeaderFooter(LayoutEngine.java:958)
>> at org.compiere.print.layout.LayoutEngine.layout(LayoutEngine.java:444)
>> at org.compiere.print.layout.LayoutEngine.<init>(LayoutEngine.java:134)
>> at org.compiere.print.ReportEngine.layout(ReportEngine.java:320)
>> at org.compiere.print.ReportEngine.getLayout(ReportEngine.java:330)
>> at org.compiere.print.ReportEngine.getCtx(ReportEngine.java:367)

Steps to play

  1. Go to the Company window
  2. in the Company Information tab remove the reports logo
  3. Reset cache
  4. Generate a detail type report

Screenshot or Gif

error_in_ddh Screenshot_20230720_142541

Link to minimal reproduction

Expected behavior

If there is no logo in the company, you should simply validate and not show it

Other relevant information

-Your OS: -Java version:

Additional context

Add any other context about the problem here.
https://github.com/adempiere/adempiere/issues/4245