#fixed code
                                public static int sizeof(Class<? extends Pointer> type) {
        return offsetof(type, "sizeof");
    }
#vulnerable code 
                                public static int sizeof(Class<? extends Pointer> type) {
        // Should we synchronize that?
        return memberOffsets.get(type).get("sizeof");
    } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE