Retirement tax questions

I just went through the same thing, and spoke to an agent. She pointed out (after doing some research) that if the decedent was not a NY resident, the exclusion is not available to the beneficiary even if the beneficiary is a NY resident. Any thoughts?