Fix passing and dereferencing of nullptr
This patch adds logic to check for a nullptr before dereferencing the pointer. (Closes ATLASSIM-2157.)
In addition, raw pointers were converted to std::unique_ptr
(where
applicable) and comments were added for future generations. Suspected
memory leak also addressed. (Fixes for !21064 (merged) and follow-up of
ATLASSIM-4006.)
Edited by Vincent Pascuzzi