From 84adf157fa97cc312ea7701a07a263544c1c5273 Mon Sep 17 00:00:00 2001 From: jiazhong Date: Tue, 18 Nov 2014 20:36:09 +0800 Subject: [PATCH] fix bug when return tables from project --- cube/src/main/java/com/kylinolap/cube/project/ProjectInstance.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cube/src/main/java/com/kylinolap/cube/project/ProjectInstance.java b/cube/src/main/java/com/kylinolap/cube/project/ProjectInstance.java index 781fc6c..f8939e4 100644 --- a/cube/src/main/java/com/kylinolap/cube/project/ProjectInstance.java +++ b/cube/src/main/java/com/kylinolap/cube/project/ProjectInstance.java @@ -188,8 +188,8 @@ public void addTable(String tableName) { //will return new Set for null public Set getTables() { - return tables==null?new TreeSet():tables; - } + tables = tables==null?new TreeSet():tables; + return tables; } public String getOwner() { return owner;