The plaintiff-appellant, Judy F. Pappas, asserts the district court improvidently dismissed her cause for the damages purportedly arising from the alleged professional negligence of the defendant-appellee, attorney George A. Sommer. More specifically, Pappas claims, in effect, that the district court erroneously concluded (1) that she lacked standing to sue and (2) that it lacked subject matter jurisdiction. We affirm in part, and in part reverse and remand for further proceedings.
Pappas alleges in her petition that she, in accordance with the negligent advice Sommer gave her, executed documents which rendered her liable on the debt of another and which subjected her interest in certain real estate to the judgment lien arising out of that debt. According to the petition, it became necessary, as a consequence of the foregoing, for Pappas to “file a personal bankrupcty [sic] action.”
Sommer responded by filing a “Motion to Dismiss,” asserting that the district court lacked subject matter jurisdiction because “ [t]he claim described is part of a bankrupt estate pending in the U.S. Bankruptcy Court,” jurisdiction over which had not been removed to the district court.
The district court suggested the motion should be treated as a *611 demurrer, but nonetheless received in evidence a copy of Pappas’ bankruptcy filing, which recites that relief was being sought under chapter 11 of the federal Bankruptcy Code.
The district court explained in its ruling that because Pappas’ negligence cause had accrued prior to the bankruptcy filing, the cause had become an asset of the bankruptcy estate and thus could not be pursued by Pappas in her own right.
The district court correctly recognized that a pretrial motion to dismiss is not permitted. Neb. Rev. Stat. § 25-803 (Reissue 1989);
United States Fire Ins. Co.
v.
Affiliated FM Ins.
Co.,
However, the district court ignored the rule that a demurrer goes only to those defects which appear on the face of the petition.
Houska
v.
City of Wahoo,
Thus, having elected to treat Sommer’s irregular motion as a demurrer, the district court erred in admitting the copy of Pappas’ filing in the bankruptcy court. The district court could properly consider only the factual allegations in Pappas’ petition and the reasonable implications of those allegations. We so confine our analysis.
We know from the petition that Pappas’ negligence action accrued prior to the bankruptcy filing. All assets of the debtor become the property of the bankrupt estate upon
*612
commencement of the bankruptcy proceeding. 11 U.S.C. § 541 (1988). See, e.g.,
In re Dow,
In arguing against this proposition, Pappas calls to our attention that as a debtor in possession of the bankrupt estate under chapter 11 of the code, bankruptcy rule 6009, 11 U.S.C. app. rule 6009 (1988), grants her, as well as the trustee, the authority to prosecute the malpractice claim. Rule 6009 does indeed provide that, with or without court approval, either a trustee or a debtor in possession may commence and prosecute on behalf of the estate any action or proceeding before any tribunal.
However, as the petition does not allege the type of bankruptcy relief Pappas sought, we cannot know that the filing was under chapter 11. Moreover, as the petition does not so allege, we cannot know that Pappas is in possession of the bankruptcy estate. Without that knowledge, we must apply the general rule that the property of the bankrupt belongs to the trustee of the estate.
Neb. Rev. Stat. § 25-301 (Reissue 1989) provides that, with an exception not involved here, every “action must be prosecuted in the name of the real party in interest...” Not only does the caption of the petition not recite that the negligence action is brought on behalf of the bankruptcy estate, the petition fails to allege that Pappas prosecuted the lawsuit for and on behalf of the estate. Accordingly, the district court correctly concluded that Pappas lacked standing to bring this lawsuit in her own name and on her own behalf. See, e.g.,
Collins v. Federal Land Bank of Omaha,
*613
However, our analysis does not end with that determination, for the rule is that after a demurrer is sustained, leave to amend the petition is to be given, unless it is clear that no reasonable possibility exists that the plaintiff will be able to correct the deficiency. See,
St. Paul Fire & Marine Ins. Co. v. Touche Ross &
Co.,
Thus, while the district court correctly sustained Sommer’s demurrer, it erred in failing to grant Pappas an opportunity to amend her petition. Accordingly, we affirm the district court’s sustainment of the demurrer, but reverse its order of dismissal and remand the cause for further proceedings consistent with this opinion.
Affirmed in part, and in part reversed and REMANDED FOR FURTHER PROCEEDINGS.
