The judge said the offences were "a stupid thing to do" and went against the rigorous training of the two officers.