fix Issue 12505 - Null pointers are pretty-printed even when hex output is requested
Merge pull request #2068 from 9rnsr/fix12505

Issue 12505 - Null pointers are pretty-printed even when hex output is requested