You can’t make an illegal act legal by virtue of a contractual promise. Such a contract is void from the start.
what if it was a legal purchase and the NDA guy didn’t find out til later that the purchaser was traitorous?
IMO, he should go to Barr and tell all.