IDEMPIERE-663 Zk: Remove the need of re-query for table editor after user have create a new record. Fixed NPE.

This commit is contained in:
Heng Sin Low 2013-02-26 07:10:41 +08:00
parent ada4a0f749
commit be80f21469
1 changed files with 5 additions and 3 deletions

View File

@ -211,10 +211,12 @@ ContextMenuListener, IZoomableEditor
} }
private void createCacheListener() { private void createCacheListener() {
if (lookup != null) {
String columnName = lookup.getColumnName(); String columnName = lookup.getColumnName();
String tableName = columnName.substring(0, columnName.indexOf(".")); String tableName = columnName.substring(0, columnName.indexOf("."));
tableCacheListener = new CCacheListener(tableName, this); tableCacheListener = new CCacheListener(tableName, this);
} }
}
@Override @Override
public String getDisplay() public String getDisplay()