3rd person shooter shadow problem

Hi everyone.

I’m using the 3rd person shooter of unity 3, but now i removed the direction lights of the scene and placed point lights. And when my player died, Unity gives me a error:

NullRefenceException
CharacterShadow.LateUpdate ()(at Assets/Demo Scene Script/CharacterShadow.cs:168)

What should i do te fix it?
Someone can help me?

*EDIT:

The error says something about this line

			child.camera.targetTexture = shadowmap;			
		Projector proj = (Projector)child.GetComponent(typeof(Projector));
		proj.material.SetTexture("_ShadowTex", shadowmap);

Look at that line of code. You’ll find it trying to find the direction of the directional light, which you have deleted, hence this error. How do you want the shadow to look with your lights?