Apparently debug info value can actually be NULL. Implemented a guard against this corner case.