#fixed code
                                public static void main(String[] args) {
        ZhihuConfiguration configuration = new ZhihuConfiguration();
        String pipelinePath = configuration.getMemberPath();

        Spider spider = Spider.create(new ZhihuMemberPageProcessor())
                .setScheduler(new FixedFileCacheQueueScheduler(pipelinePath))
                .addPipeline(new ZhihuMemberPipeline(pipelinePath))
                .thread(20);

        ZhihuMemberUrlTokenGetter getter = new ZhihuMemberUrlTokenGetter();
        for (String token : getter.getUrlTokens()) {
            spider.addUrl(generateMemberUrl(token));
        }

        spider.run();
    }
#vulnerable code 
                                public static void main(String[] args) {
        String pipelinePath = "/Users/brian/todo/data/webmagic";
        String tokenPath = "/Users/brian/todo/data/backup/url_tokens/users.txt";
        ZhihuMemberUrlTokenGetter getter = new ZhihuMemberUrlTokenGetter();

        Spider spider = Spider.create(new ZhihuMemberPageProcessor())
                .setScheduler(new FixedFileCacheQueueScheduler(pipelinePath))
                .addPipeline(new ZhihuMemberPipeline(pipelinePath))
                .thread(20);

        for (String token : getter.getUrlTokens(tokenPath)) {
            spider.addUrl(generateMemberUrl(token));
        }

        spider.run();
    } 
                            #location 11 
                            #vulnerability type NULL_DEREFERENCE