The order appealed from vacates that portion of a judgment, in a will contest, which awarded costs in favor of the рlaintiff, Aurilla Mabel Waller, and against *470 defendant Emily W. Ewald. The contest arose over a document which purports to be the last will and testament of Aurilla Johnson, deceased, and names said Emily W. Ewald as sole legatee and devisee. This instrument was offered for рrobate by Amos 0. Williams, as public administrator of Santa Clara County, who asked for letters of administration with the will annexed. Probate was contested by Aurilla Mabel Waller, an adopted daughter of the decedent, upon the grounds that decedent was not of sоund mind at the date of the execution of the instrument and that the instrument was not entirely written, dated and signed by the decedent; in this action Amоs 0. Williams and Emily W. Ewald appeared as defendants. The jury returned a verdict in favor of contestant upon both grounds, judgment was entered in accordance therewith and defendants’ motion for a new trial was denied. In passing, it may be noted that the merits of the will contest are involved in an appeal which defendants have taken from the judgment itself and are not under consideration in the present proceedings.
Subsequent to the motion for a new trial, defendant Amos 0. Williams moved that the judgment be set aside and vacаted upon the ground that it contained an award of costs which was made and based upon an erroneous conclusion of law and which was not within the authority or jurisdiction of the trial court. The motion was granted and an order made vacating the judgment and dirеcting the entry of a judgment in favor of plaintiff as previously rendered, but eliminating therefrom all provisions concerning costs. Prom thе order last mentioned plaintiff Aurilla Mabel Waller instituted the present appeal.
In support of her appeal plаintiff contends that the trial court had jurisdiction to award costs against defendant Emily W. Ewald, since section 1720 of the Code of Civil Procеdure authorizes the court to exercise its discretion in allowing costs in a will contest, and, therefore, that any error committеd was merely an error in the exercise of discretion concerning a matter within the court’s jurisdiction and could only be reaсhed on a motion for new trial, and not, as in the present case, by a motion to vacate the judgment made subsequent to and independently of the proceedings for a new trial.
*471
The right to recover costs exists solely by virtue of statute. Consequently an awаrd of costs can be justified only if permitted by some statutory provision) and the measure of the statute is the measure of the right.
(Begbie
v.
Begbie,
In
Estate of Yoell,
By reason of these authorities we are compelled to conclude that the statute applicable to costs in will contests before probate does not authorize an allowance оf costs until the final determination of the litigation, and, consequently, that the trial court was without jurisdiction to allow costs in rendering the judgment in plaintiff’s favor in the present case.
However, it is pointed out by plaintiff that the motion to set aside the order allowing cоsts was not made by Emily W. Ewald, the defendant against whom costs were awarded, but by defendant Amos O. Williams, who was not the “party aggrieved.” Plaintiff сlaims that according to the provisions of section 663 of the Code of Civil Procedure the motion can only be made by the party injured by the erroneous judgment. It was unnecessary to comply with the terms of the section last mentioned, for, to the extent that thе judgment purported to allow costs, it was outside of the jurisdiction of the court and absolutely void. Any person at any time could call the attention of the court to that fact. When a judgment or a part thereof is absolutely void and the invalidity is apparent upon the face of the record, it “may be attacked^ anywhere, directly or collaterally, whenever it presents itself, either by parties or strangers. It is simply a nullity, and can be neither a basis nor evidence of any right whatever,”
(Estate of Pusey,
The order eliminating that portion of the judgment which allowed costs was therefore proper and the present appeal must fail. The order is affirmed.
Seawell, J., Richards, J., Shenk, J., • Curtis, J., Waste, C. J., and Cashin, J., pro tem., concurred.
Rehearing denied.
Curtis, J., dissented.
