locker type error check