#fixed code
                                public int getChainId(String chainName) {
        return CHAIN_ID_MAP.get(chainName);
    }
#vulnerable code 
                                public int getChainId(String chainName) {
        return chain_id_map.get(chainName);
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE