#vulnerable code 
                                private String handleTypeName(String typeName) {
        String[] tokens = typeName.split(",");
        boolean foundIt = false;
        for (String token : tokens) {
            String[] keys = token.split("=");
            for (String key : keys) {
                // we want the next item in the array.
                if (foundIt) {
                    return key;
                }
                if (getTypeNames().contains(key)) {
                    foundIt = true;
                }
            }
        }
        return null;
    } 
                            #location 11 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private String handleTypeName(String typeName) {
        if (getTypeNames() == null && getTypeNames().size() == 0) {
            return null;
        }
        String[] tokens = typeName.split(",");
        boolean foundIt = false;
        for (String token : tokens) {
            String[] keys = token.split("=");
            for (String key : keys) {
                // we want the next item in the array.
                if (foundIt) {
                    return key;
                }
                if (getTypeNames().contains(key)) {
                    foundIt = true;
                }
            }
        }
        return null;
    }