From f11951554434242172444bf5007e6e79af5b81c3 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 19 Apr 2013 20:54:14 +0800 Subject: [PATCH] IDEMPIERE-460 Integrate and migrate 3e services. Added lookup support for web services to ease the building of idempiere web service client in webui or swing. --- .../src/org/adempiere/webui/editor/WTableDirEditor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); + } } }