"Object reference not set..." is always an indicator of a bug in the software. But perhaps there is a workaround.
I suggest that you open a track with SAS Technical Support with all of the details. It might help if you capture the Application Log (turn on in Tools->Options) as you reproduce the the problem and include that as well.
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.