This is in Swedish, but I think it is of global interest. A climate activist who had blocked car traffic on a street in a protest action was found guilty as charged in court, but was released from penalty due to the danger of climate change and that he was acting against this threat. The court deemed it was impossible to impose charges, considering the threat of climate change. Win!
https://supermiljobloggen.se/nyheter/olydig-klimataktivist-slipper-straff-i-unik-dom/