add additional null gaurd to info_span function