
    Glen Cove Granite Company, Respondent, v. Patrick Costello and Others, Defendants. Mary Skelly, as Executrix, etc., of Patrick Larney, Deceased, Appellant.
    
      Judgment — when the court has jurisdiction it cannot be attached collaterally.
    
    The Glen Cove Granite Company, a foreign corporation, which had entered into a contract with one Patrick Costello to supply the latter with material to be used by him in the performance of a paving contract with the city of New York, filed with the city authorities a notice of lien upon the moneys payable to Costello under his contract. Costello thereafter furnished a bond executed by himself and a surety company for a sum sufficient to cover the lien claimed by the granite company, which bond was substituted for the moneys due to Costello.
    Simultaneously with the giving of the bond Patrick Costello, Patrick Larney, Patrick J. Costello and James Haggerty executed a bond to the surety company by which they agreed to save the surety company harmless from any loss by reason, or in consequence, of the surety company’s having executed the bond.
    The granite company then brought an action to foreclose its lien, alleging in its complaint that it was a foreign corporation and had been authorized to do business in the State of New York. Patrick Costello served an answer putting in issue the allegation that the granite company was authorized to do business within the State of New York, and then proceeded to set up an affirmative defense and twd counterclaims. The surety company also put in issue the authority of the granite company to do business within the State of New York,
    On the trial the plaintiff did not prove its allegation of authority to do business within the State of New York, and thereupon the complaint was dismissed as to the defendant surety company. Costello gave no evidence to support his affirmative defense or counterclaims, and the court rendered a judgment adjudging that the lien was a valid lien upon the moneys due to Patrick Costello under his contract and directed the entry of a personal judgment against him from which no appeal was taken.
    After the entry of that judgment the plaintiff brought an action in the United States Circuit Court against the surety company, in which that court held that the New York judgment dismissing the complaint was not a bar to the action, and rendered a judgment against the surety company. Thereupon the executrix of the will of Patrick Larney, one of the indemnitors of the surety company, being advised that the latter company was in a position to enforce its'indemnity, made a motion for leave to vacate the judgment entered in the New York action and to litigate the mattery of defense set up in Patrick Costello’s answer and in respect of which he failed to give evidence, claiming such relief upon the ground that the court had no jurisdiction to render a personal judgment against Patrick Costello.
    
      Meld, that while it might have been inconsistent for the New York court to dismiss the action as to the surety company and retain it as to the defendant Patrick Costello, it was within the jurisdiction of the court to determine that the granite company had a valid lien upon the moneys due to Patrick Costello under the contract, and that the judgment could not be attacked collaterally.
    Appeal by Mary Slcelly, as executrix, etc., of Patrick Larney, deceased, from an order of the Supreme Court, made at the Few York Special Term and entered in the office of the clerk of the county of Few York on the 19th day of August, 1901, denying her motion to vacate the judgment theretofore entered in the above-entitled action, and to permit her to intervene and defend said action.
    
      E. Ellery Anderson, for the appellant.
    
      La Roy S. Gove, for the respondent.
   Pattekson, J.:

By the order from which this appeal is taken, a motion made by Mary Skelly, executrix of the last will and testament of Patrick Larney, to vacate a judgment and for leave to intervene and defend the action, was denied. The material facts appearing in the record are as follows:

In September, 1896, one Patrick Costello entered into a contract with the city of New York for paving Thirteenth avenue, between Twenty-third and Twenty-seventh streets, and the plaintiff in this action entered into a contract with Costello to supply him with granite blocks to enable him to perform the work under liis contract with the city. In December, 1896, the plaintiff filed with the proper authorities of the city of New York a notice in writing claiming a lien upon the moneys payable to Costello under his contract. In January, 1897, Costello furnished a bond executed by himself • and the City Trust, Safe Deposit and Surety Company of Philadelphia for a sum sufficient to cover the lien claimed by the plaintiff, and that bond was conditioned for the payment of any judgment which the plaintiff might recover upon the claim or demand mentioned in the notice or statement of lien filed by the plaintiff. That bond was approved and thereupon became substituted for any moneys which might become due from the city of New York to Costello under his contract with it. Simultaneously with the giving of this bond, the surety company demanded indemnity from Costello and thereupon an instrument was executed and delivered to it by Patrick Costello, Patrick Larney, Patrick J. Costello and James Haggerty, in which instrument it is recited that whereas at the special instance and request of the parties above mentioned-and on the security hereof, the City Trust, Safe Deposit and Surety Company of Philadelphia has executed or is about to execute its two bonds in behalf of Patrick Costello to the comptroller of the city of New York to discharge liens filed with the said comptroller, therefore in consideration of the premises and of the sum of One Dollar, the parties named bound themselves, their respective legal representatives, their successors and assigns, first, that Patrick Costello should pay to the trust company a yearly premium on the bond furnished by it to the comptroller; and, second, that they shall and will at all times indemnify and save harmless and keep indemnified the said surety from and against all loss, damages, charges, counsel fees and expenses whatsoever which said surety shall or may for any cause sustain or incur by reason or in consequence of the said surety company having executed said bond, obligation or instrument, and do further covenant and agree to pay to the said The City Trust, Safe Deposit and Surety Company of Philadelphia, or its representatives, all damages for which said surety company or its representatives shall become responsible upon said bond or obligation, before the said surety company or its representatives shall be compelled to pay the same; any sum so paid, however, to be applied to the payment of such damages; and in case any suit, action or other proceedings shall be commenced, or notice served on said parties of the first part, or either of them, in any manner relating to or growing out of the matter or business, or for or on account of which the aforesaid bond, obligation or instrument is required to be executed, immediate notice thereof shall be given to the said surety company.

This action was brought to foreclose and enforce the lien claimed by the Glen Cove Granite Company against the moneys due to Patrick Costello under his contract. Patrick Costello and the mayor, aldermen and commonalty of the city of New York were made defendants, as were also some third parties claiming liens on the moneys. Subsequently the surety company was brought in as a defendant. It was alleged in the complaint that the plaintiff was a foreign corporation and that it had complied with all the laws and regulations pertaining to foreign corporations doing business within the State of New York and that it had been granted a certificate by the Secretary of State of New York permitting it to do business within the State of New York. Patrick Costello answered the complaint, and in his answer put in issue the allegation that the plaintiff was authorized to do business within the State of New York, and then proceeded to set up affirmatively that the plaintiff failed to deliver the paving blocks it was to supply to him within the time mentioned in the contract; that some of such blocks never were delivered, and that by reason of the plaintiff’s failure to perform its contract with him the defendant Costello had suffered damage in the sum of $5,000, and he also set up two counterclaims. The answer of the defendant the City Trust, Safe Deposit and Surety Company of Philadelphia also put in issue the authority of the plaintiff to do business within the State of New York. The cause came on for trial in May, 1900. The plaintiff did not prove its allegation of authority to do business within the State of New York, and thereupon the complaint was dismissed as to the defendant the City Trust, Safe Deposit and Surety Company of Philadelphia. Costello gave no evidence to support his affirmative defense or counterclaims, and thereupon the court ordered a personal judgment in favor of the plaintiff against him for the sum of $5,860.31, which judgment was duly entered, and from which no appeal has been taken. After the entry of that judgment, the plaintiff brought an action in the United States Circuit Court for the eastern district of Pennsylvania against the surety company; that action was defended and the New York judgment dismissing the complaint was set up in bar, but that defense was overruled on the ground that the New York judgment was not one on the merits and the surety company was held liable on its bond. Mary Skelly, the executrix of the will of Patrick Larney, being advised that the surety company is now in a position to enforce the indemnity which it took upon giving its bond to the comptroller, seeks to open the New York judgment and to litigate the matters of defense set up in Costello’s answer and in respect of which he failed to give evidence on the trial of the action to foreclose the lien. She shows in her application that Patrick J. Costello and James Haggerty, who were jointly bound with Patrick Costello, are insolvent. She claims the right to have the judgment in this action opened and to intervene primarily on the ground that her testator was a surety and as such is entitled to protection and should be permitted to contest as against the plaintiff on the facts set up in Patrick Costello’s answer its right to the judgment it has obtained.

It is, to say the least, very doubtful whether the executrix has any standing in court to make this application. She does not show that there was any privity between the plaintiff and her testator in the transaction which resulted in the giving of the bond of indemnity to the surety company. It would seem that the case is simply one of a surety taking indemnity from his principal. Ordinarily the obligee in such a bond as that given by the surety company in this case has no concern with the relations existing between the obligor and a person on whose behalf or in whose interest that obligor assumes the burden of the bond ; but, without placing our decision upon that ground, we are of the opinion that the motion was properly decided in the court below.

Assuming that the executrix has a standing in court to make the motion, the relief she applied for was claimed upon the ground that in the action to foreclose the lien the court had no jurisdiction to render a personal judgment against Patrick Costello. The argument is, that if the complaint were properly dismissed as to the surety company, it should also have been dismissed as to Costello, for the reason that it is disclosed by the record that the same issue upon which the dismissal was directed in favor of the surety company was raised by Costello’s answer. The learned judge before whom the trial was had held that the plaintiff in consequence of its failure to prove its right to do business in the State of New York had failed to show its right to file a lien, and, therefore, the action must be dismissed as to it. It is difficult to see why the same results should not have followed with respect to the defendant Costello. If there were no lien as against the surety company there was none as against him.

We have held that in an action to enforce a lien, before a personal judgment can be obtained, the lien must be established, and that it is the existence of the lien which gives the plaintiff the right to resort to a court of equity for the enforcement of his claim; that the light to a personal judgment is only incidental to the main purpose, which is to satisfy a debt out .of specific property, and that where a lien does not actually exist a party cannot invoke the equitable powers of the court to deprive his adversary of what he would otherwise be entitled to, namely, a trial by jury. (McDonald v. Mayor, 58 App. Div. 75.) The difficulty with this case, however, is that the trial court, as against Costello, decided that there was a valid lien secured by the plaintiff. It is so stated in the decision of the trial judge, who found that the plaintiff had furnished to Patrick Costello the materials, to wit, paving blocks of a certain value, and that, pursuant to the provisions of the statutes of the State of New York, alien was filed, and that that lien was “ a good and valid lien upon the moneys under the control of the Mayor, Aldermen and Commonalty of the city of New York, due or to grow due to said Patrick Costello under said contract to the extent and amount therein claimed, and interest.” The judgment following the decision recites that the plaintiff duly filed in the proper offices notices claiming a lien ; that they conformed in all respects to the provisions of the statutes of the State of New York, “and that thereby the plaintiff herein acquired a lien on said moneys.” Thus we have an adjudication that there was a valid lien. The judgment also recites that on the 28th day of January, 1897, the defendant Patrick Costello, as principal, duly gave his bond with the defendant the City Trust, Safe Deposit and Surety Company of Philadelphia, as surety, in a sum, not exceeding $8,279, conditioned for the payment of any judgment which might be recovered upon the claim specified in the notice of lien of the plaintiff against the said defendant Patrick Costello; that said bond was approved by a justice of the Supreme Court of the State of New York, and duly filed the 29th day of January, 1897, and the lien of the plaintiff herein thereby discharged.

While it may have been inconsistent to dismiss the action as to the surety company and retain it as to the defendant Costello, it is perfectly apparent that it was within the jurisdiction' of the court to pass upon and determine the validity of the lien, and inasmuch as the court had jurisdiction, the judgment cannot be attacked collat erally. We are of the opinion that the motion was properly denied upon the case now made.

The order must be affirmed, with costs.

Van Brunt, P. J., Ingraham, Hatch and Laughlin, JJ., concurred.

Order affirmed, with costs.  