avoid dereferencing a nullptr object
Dereferencing a nullptr should be avoided, even if the passed object is never used. It may not be the most elegant solution to pass an empty list object, but it should work.
Dereferencing a nullptr should be avoided, even if the passed object is never used. It may not be the most elegant solution to pass an empty list object, but it should work.