If phones are "Unknown" in system, detail lookup fails
Brought to you by:
bcstechnologies
Function GetDeviceDetails(query) fails with the following exception when devices exist in UCM database that are "Unknown" (not registered since last service reset):
System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_IPPHONEXML.clsAXLAPI.GetDeviceDetails(String query) at HSPI_IPPHONEXML.clsHSWeb.BuildDevicesPage()
Anonymous
It appears when a request is made of the Serviceability API for a device that is "unknown", the API returns 0 results. The code needs to account for a NULL Response and treat it as not found (log the warning, and continue processing)