diff --git a/TeslaLogger/WebHelper.cs b/TeslaLogger/WebHelper.cs index 2e82119df..729d55024 100644 --- a/TeslaLogger/WebHelper.cs +++ b/TeslaLogger/WebHelper.cs @@ -1939,7 +1939,7 @@ public string GetVehicles() System.Diagnostics.Debug.WriteLine(DateTime.Now.ToString() + " : " + OnlineState); string display_name = r2["display_name"].ToString(); - if (car.DisplayName != display_name) + if (!string.IsNullOrEmpty(display_name) && car.DisplayName != display_name) { car.DisplayName = display_name; Log("WriteCarSettings -> Display_Name"); @@ -5875,4 +5875,4 @@ class Account public string display_name; public bool fleetAPI; } -} \ No newline at end of file +}