handle NULL prodptr, zero prodsize, NULL metadata pointer