#vulnerable code 
                                public String getType() {
        return ElementUtils.contains(getRoot(), "name").getTextTrim();
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public String getType() {
        return ElementUtils.contains(getRoot(), "type").getTextTrim();
    }