For some foreign journalist or diplomat sure but against a local journalist, maintenance crew, cleaner, etc who all most likely sign the exact same NDA for sure Ukraine can enforce it if the person is unable to escape the country (which for males aged 18 to 65 is really hard at the moment for example)
edit: Also as a journalist if you actually do leak such information after signing a piece of paper saying you would not who would actually trust you with any kind of secret information in the future?
I would love to be a fly on the wall when someone tries using that excuse in a war zone xD In a way I'm thankful for it. It means that most people never even came close to real consequences of their actions...
I'm not sure how the legal system in Ukraine works but for criminal charges you typically you need to prove intent. "Stupidity" would probably be a valid excuse in that case because it implies lack of intent, at least pertaining to the charge of betraying the country.
Every opinion should be attacked from all angles to prove its validity. Saying that people are contrarian for expressing a counteropinion is asking for people not to attack a position, which would lead to false opinions being propagated.
For some foreign journalist or diplomat sure but against a local journalist, maintenance crew, cleaner, etc who all most likely sign the exact same NDA for sure Ukraine can enforce it if the person is unable to escape the country (which for males aged 18 to 65 is really hard at the moment for example)
edit: Also as a journalist if you actually do leak such information after signing a piece of paper saying you would not who would actually trust you with any kind of secret information in the future?