What about defense attorneys?

Question:  What about the defense attorneys who are assigned the criminals?  Do they get in trouble if the criminal is found innocent?

Answer:  No.  As long as they are honestly defending the person, it is up to the court/jury to decide if the person is innocent or guilty.  However, if they are dishonest, they are only adding sin to sin.