diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java index a84906432f..7662e40312 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java @@ -216,8 +216,11 @@ ContextMenuListener, IZoomableEditor private void createCacheListener() { if (lookup != null) { String columnName = lookup.getColumnName(); - String tableName = columnName.substring(0, columnName.indexOf(".")); - tableCacheListener = new CCacheListener(tableName, this); + int dotIndex = columnName.indexOf("."); + if (dotIndex > 0) { + String tableName = columnName.substring(0, dotIndex); + tableCacheListener = new CCacheListener(tableName, this); + } } }