Protection against null codec