handle null data in debug statement also