IDEMPIERE-5356 - Printing Support on ProcessInfoDialog - NPE fix (#1428)
* IDEMPIERE-5356 - NPE fix * IDEMPIERE-5356 - applied 1428_pr patch
This commit is contained in:
parent
0cb7216599
commit
c92d1b3896
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue