#vulnerable code 
                                @Override
    public List<Word> segImpl(String text) {
        if(text.length() > PROCESS_TEXT_LENGTH_LESS_THAN){
            return RMM.segImpl(text);
        }
        //获取全切分结果
        List<Word>[] array = fullSeg(text);
        //利用ngram计算分值
        Map<List<Word>, Float> words = ngram(array);
        //歧义消解（ngram分值优先、词个数少优先）
        List<Word> result = disambiguity(words);
        return result;
    } 
                            #location 11 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Override
    public List<Word> segImpl(String text) {
        if(text.length() > PROCESS_TEXT_LENGTH_LESS_THAN){
            return RMM.segImpl(text);
        }
        //获取全切分结果
        List<Word>[] array = fullSeg(text);
        Set<Word> words = new HashSet<Word>();
        for(List<Word> wordList : array){
        	words.addAll(wordList);
        }
        List<Word> result =  new ArrayList<Word>(words);
        return result;
    }