IDEMPIERE-5356 - Printing Support on ProcessInfoDialog - NPE fix (#1428)

* IDEMPIERE-5356 - NPE fix

* IDEMPIERE-5356 - applied 1428_pr patch
This commit is contained in:
Peter Takács 2022-08-09 11:50:06 +02:00 committed by GitHub
parent 0cb7216599
commit c92d1b3896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -289,9 +289,12 @@ public class ProcessInfoDialog extends Window implements EventListener<Event> {
* @return boolean
*/
public boolean isPrintable() {
if (m_logs == null)
return false;
for(ProcessInfoLog log : m_logs) {
if (ReportEngine.getReportEngineType(log.getAD_Table_ID()) >= 0)
return true;
if (log.getAD_Table_ID() > 0 && log.getRecord_ID() > 0 && ReportEngine.getReportEngineType(log.getAD_Table_ID()) >= 0)
return true;
}
return false;
}