#vulnerable code 
                                public int commentKarma() throws IOException, ParseException {
        return Integer.parseInt(Utils.toString(info().get("comment_karma")));
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public int commentKarma() throws IOException, ParseException {
        return Integer.parseInt(Utils.toString(getUserInformation().get("comment_karma")));
    }