Judge in trouble after delivering judgement before case was