Null Reference Exception on passing texture to HLSL

Have you verified the texture was successfully loaded and not null?