IDEMPIERE-3416: Implement the ability to track open DB connections (NPE)

This commit is contained in:
hieplq 2020-04-06 11:09:57 +07:00 committed by Carlos Ruiz
parent d368c2583a
commit ba380e114e
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ public class GridTabCSVImporter implements IGridTabImporter
manageMasterTrx(gridTab, null);
createTrx(gridTab);
}
trx.setDisplayName(GridTabCSVImporter.class.getName()+"_fileImport_" + gridTab.getTableName());
if (trx != null)
trx.setDisplayName(GridTabCSVImporter.class.getName()+"_fileImport_" + gridTab.getTableName());
String recordResult = processRecord(importMode, gridTab, indxDetail, isDetail, idx, rowResult, childs);
rowResult.append(recordResult);