ensure shader is not null