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,9 +211,11 @@ ContextMenuListener, IZoomableEditor
} }
private void createCacheListener() { private void createCacheListener() {
String columnName = lookup.getColumnName(); if (lookup != null) {
String tableName = columnName.substring(0, columnName.indexOf(".")); String columnName = lookup.getColumnName();
tableCacheListener = new CCacheListener(tableName, this); String tableName = columnName.substring(0, columnName.indexOf("."));
tableCacheListener = new CCacheListener(tableName, this);
}
} }
@Override @Override