When any fund or property is in litigation and the rights of either or both parties cannot otherwise be fully protected or when there is a fund or property having no one to manage it, a receiver of the same may be appointed by the judge of the superior court having jurisdiction thereof.