@ -5267,7 +5267,7 @@ VendorCtrl* CPhoneDevice::MakeVendorCtrl(int vendor, uint8_t channel, const std:
// Hang Yu - New
vendorCtrl = new HangYuCtrl(ip, userName, password, channel, netHandle, syncTime);
}
if (syncTime)
if (syncTime && (vendorCtrl != NULL))
{
time_t ts = time(NULL);
vendorCtrl->UpdateTime(ts);