Opinion by
This is an appeal from the order of the court below wherein it sustained preliminary objections and dismissed the complaint, without granting leave to amend the form of action from trespass to assumpsit. On October 26, 1956 plaintiffs filed a complaint in trespass setting forth that the plaintiffs are the owners of a farm and that the defendant gas company “has a right-of-way or easement through this farm under which there is laid a gas line, and from time to time it has been necessary for the Gas Company to repair this line.” The plaintiffs further averred that the defendant has been on the farm 13 different times to repair the pipe line and once to repair the telephone line and then itemized the dates and damage done. The defendant filed preliminary objections to the effect that the complaint failed to state a cause of action in trespass. In the course of the argument counsel for plaintiffs indicated that if the court was of the opinion that an action in assumpsit was more appropriate, the plaintiffs should be allowed to amend. The court sustained the preliminary objections and granted plaintiffs leave to file an amended complaint. On January 3, 1957 plaintiffs filed an amended complaint by referring to the right-of-way agreement and attaching a copy. Plaintiffs, in the amended complaint, further stated: “That the Gas Company in disregard of their right of way agreement went on the premises and unlawfully went through 700 ft. of farm road and 200 ft. of corn field in order to arrive at a location to make a repair to a hole in its line which was 40 ft. long, 4% ft. deep and 10 ft. wide, and referred to in paragraph 6 (d) of the original complaint; that on September 24, 1952, the Gas Company drove trucks and hauled earth digging machinery through 1200 ft. of pasture field in order to make a repair; on September 30, 1952, the Gas Com *514 pany hauled a back hoe and other machinery and drove trucks through 1500 ft. of pasture land.” The original complaint was entitled “Complaint in Trespass.” The amendment failed to change the name “Trespass” to “Assumpsit.” Defendant again filed preliminary objections stating that the plaintiffs had not stated a cause of action in trespass. The court below sustained the objections and dismissed the complaint “with leave for plaintiffs to proceed, without prejudice, in assumpsit.” It is the appellants’ contention on this appeal that the complaint should not have been dismissed but that they should have been permitted to amend the form of action from trespass to assumpsit. We agree with the court below that this really was an action in assumpsit and not in trespass. One cannot be guilty of a trespass by illegal entry if his wrong is committed subsequent to a rightful entry where such entry was by permission of the owner. Restatement, Torts, §158. Where the alleged trespasser has an easement over the land his entry is privileged. .Restatement, Torts, §188. A right of entry constitutes an absolute defense to an action in trespass. 1
Pa. Water & Power Co. v. Reigart,
We are of the opinion that plaintiffs should have been given leave to amend the form of action from trespass to assumpsit. The discretion of the court in act
*515
ing upon applications for amendments is a judicial discretion as distinguished from mere whim or caprice. Accordingly, in the absence of a proper ground for refusing an amendment, the court must grant leave to amend. 2 Anderson Pa. Civ. Pract. p. 534. Amendment should be freely allowed. Goodrich-Amram, §1033-2. In
Littler v. Dunbar,
The order of the court below is reversed and it is ordered that the preliminary objection of the defendant be and the same is hereby sustained and the plaintiffs are granted 30 days within which to file an amended complaint.
Notes
Boults v. Mitchell,
