#fixed code
                                public Object intercept(Invocation invocation) throws Throwable {
        if (autoRuntimeDialect) {
            SqlUtil sqlUtil = getSqlUtil(invocation);
            return sqlUtil.processPage(invocation);
        } else {
            if (autoDialect) {
                initSqlUtil(invocation);
            }
            return sqlUtil.processPage(invocation);
        }
    }
#vulnerable code 
                                public Object intercept(Invocation invocation) throws Throwable {
        SqlUtil sqlUtil;
        if (autoRuntimeDialect) {
            sqlUtil = getSqlUtil(invocation);
        } else {
            if (autoDialect) {
                initSqlUtil(invocation);
            }
            sqlUtil = this.sqlUtil;
        }
        return sqlUtil.processPage(invocation);
    } 
                            #location 9 
                            #vulnerability type THREAD_SAFETY_VIOLATION