If it appear by the return and papers attached that the judge or court has no jurisdiction, such court or judge shall at once remand the applicant to the person from whose custody he has been taken.
Tex. Code Crim. Proc. art. 11.42
IF COURT HAS NO JURISDICTION
Acts 1965, 59th Leg., vol. 2, p. 317, ch. 722.
Official source: Texas Constitution and Statutes. Reproduced from public-domain Texas statutes; confirm against the official source for the current text. Not legal advice.