Fixed possible NPE in CodecMapping.