BasicEffect lines 346 and 347 use textureParam in the Texture get/set which would be null if the effect parameter name doesn't match the uniform in the shader.