The opinion of the court was delivered by
A prosecution was begun before a justice of the peace in Ness county, charging the defendant, W. A. Jarvis, with a violation of chapter 271, Laws of 1901 (Gen. Stat. 1901, §§ 3922-3929), commonly known as the “pedler’s license act.” The defendant was tried, convicted, and sentenced. Pie asks this court to dischаrge him upon habeas .corpus, on the ground that the act referred to is unconstitutional.
The state files a motion.to quash the writ, and submits the whole matter upon the motion, urging that, еven if the unconstitutionality of the statute were conceded, the petitioner could not be discharged in this proceeding, under the rule recently announced in In re Gray,
It has been held in many well considered cases that even after conviction the dеfendant will not be' permitted to have the constitutionality of the act under which he is prosecuted investigated upon habeas corpus. The argument is that the judgment of the trial court upholding the validity of a statute in fact unconstitutional is not a nullity, but binds the parties unless vacated upon direct attack by proсeedings in error. The greater weight of authority, however, favors the view that an unconstitutional law is a nullity — is no law at all — and that a conviction under it is not merely erroneous, but void, and subject to сollateral attack upon habeas corpus. This view doubtless results more from a jealous regard for the pеrsonal liberty of the citizen, than from the force of the reasoning employed as apрlied to other subjects of litigation. The authorities upon both sides of the question are collаted and discussed in a note to Koepke v. Hill,
Without at this time passing upon the question in any other aspect, we deсide that where a defendant has been convicted of a misdemeanor in justice’s court аnd no appeal has been had and the time for an appeal has expired he may challenge the constitutionality of the statute under which he was convicted in an application to this court for á writ of habeas corpus.
The petitioner claims that the statute in question is unconstitutional upоn several grounds, only,one of which it will be necessary to consider. It provides that it shall be a misdemeanor for any one to deal as a pedler without procuring and paying for a licеnse from the county clerk, but expressly exempts from its operation the owner of goods peddling them in the county in which he is a resident taxpayer, or in any county immediately adjoining thereto. The statute, therefore, attempts to impose a tax on non-residents of the state from which certain residents of the state are exempted by the fact of such residence. This is an obvious discrimination in favor of the resident and against the non-resident, and is repugnant to section 2 of article 4 of the federal constitution, which provides that the citizens of each state shall be entitled to all privileges and immunities of citizens in the several states. (Ward v. Maryland,
The motion to quash will be overruled, and the petitioner discharged.
