#fixed code
                                public boolean equals(O o1, O o2) throws Exception {
        final Object v1 = getValue(o1);
        final Object v2 = getValue(o2);
        if (v1 == null && v2 == null) return true;
        return (v1 != null && v1.equals(v2));
    }
#vulnerable code 
                                public boolean equals(O o1, O o2) throws Exception {
        final Object v1 = getValue(o1);
        final Object v2 = getValue(o2);
        if (v1 == null && v2 == null) return true;
        return (v1.equals(v2));
    } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE