#vulnerable code 
                                public static Connection getConnection(String dbPath) throws SQLException {
        // 先进先出原则
        SqliteBaseConnection currCon = null;
        synchronized (idleConList) {
            // 当可用连接池不为空时候
            if (SqliteUtils.isNotEmpty(idleConList)) {
                currCon = idleConList.get(0);
                idleConList.remove(0);
                addRunningConnection(currCon);
            }
            if (currCon == null || currCon.getConnection() == null || currCon.getConnection().isClosed()) {
                currCon = createBaseConnection(dbPath);
                addRunningConnection(currCon);
            }
        }
        return currCon.getConnection();
    } 
                            #location 11 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public static Connection getConnection(String dbPath) throws SQLException {
        if(DEFAULT_DB_PATH.equals(dbPath)){
            return getConnection();
        }else {
            SqliteBaseConnection currCon = createBaseConnection(dbPath);
            addRunningConnection(currCon);
            return currCon.getConnection();
        }
    }