The law may well sway with opinion. And with political realities.
This is not a good thing. And, Rig, the laws that are often broken when public officials look the other way do not involve treaty obligations and international law.
I'm all in favor or applying the law when it exists. Otherwise, it ceases to exist.