Section 464(1) in The Code of Criminal Procedure, 1973
(1)No finding, sentence or order by a court of competent jurisdiction shall be deemed invalid merely on the ground that no charge was framed or on the ground of any error, omission or irregularity in the charge including any misjoinder of charges, unless, in the opinion of the court of appeal, confirmation or revision, a failure of justice has in fact been occasioned thereby.