The law allows for a defence to be put forward by a journalist, or similar, on the grounds that the reasons for disclosing information were in the public interest
Section 78 CJI: New defence for purposes of journalism and other special purposes
In section 55(2) of the Data Protection Act 1998 (c. 29) (defences against offence of unlawfully obtaining etc. personal data) after “it,” at the end of paragraph (c) insert—
“(ca) that he acted—
(i) for the special purposes,
(ii) with a view to the publication by any person of any journalistic, literary or artistic material, and
(iii) in the reasonable belief that in the particular circumstances the obtaining, disclosing or procuring was justified as being in the public interest,”.