Commit 2ec9943f authored by Yelli's avatar Yelli Committed by qiaozhanwei
Browse files

fix bug: zk hasTask method NPE (#1785)

parent a96e17ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public class TaskQueueZkImpl implements ITaskQueue {
    @Override
    public boolean hasTask(String key) {
        try {
            return zookeeperOperator.hasChildren(key);
            return zookeeperOperator.hasChildren(getTasksPath(key));
        } catch (Exception e) {
            logger.error("check has task in tasks queue exception",e);
        }