If any person shall be committed to prison, or be in custody of any officer for any criminal matter, by virtue of any warrant or commitment of any magistrate of this state having jurisdiction of such criminal matter, such person shall not be discharged from such imprisonment or custody by reason of any informality or defect of such warrant or commitment; Provided, such warrant or commitment shall show substantially a criminal matter for which such magistrate had jurisdiction so to arrest or commit.
Neb. Rev. Stat. §§ 29-2814