gh-102281: Fix potential nullptr dereference + use of uninitialized memory (gh-102282)

3 files changed