null reference exception with network instatiate

This has had me stuck a couple days, just cant get past it.

man is not getting assigned.

GameObject man;
			man = Network.Instantiate(blueTeamPlayer,randomBlueSpawn.transform.position,randomBlueSpawn.transform.rotation,blueTeamGroup) as GameObject;
			man.transform.networkView.RPC("IDupdate", RPCMode.All, networkView.viewID);
				print ("no man");

I added a check to see what was giving null reference and keep getting “no man”.

But how can this be? man was assigned…

The following code works fine. Whats the difference?

Rigidbody clone;
			clone = Network.Instantiate(projectile, transform.position, transform.rotation, 0) as Rigidbody;

				clone.velocity = transform.TransformDirection(Vector3.forward * launchSpeed) + rigidbody.velocity;

The prefab was a transform, changing man to Transform and network instantiating as Transform fixed it.