Skip to content

Commit

Permalink
Prevents exception if hostname is not set, sends to console instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Johnson committed Jun 10, 2021
1 parent d044c24 commit d11a375
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PanasonicCameraEpi/HttpCommandQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ protected override object ProcessQueue(object obj)
}
if (path != null)
{
if(string.IsNullOrEmpty(client.Client.HostName))
{
Debug.Console(0, client, "Panasonic camera hostname not valid");
return null;
}
try
{
var request = new HttpClientRequest();
Expand Down

0 comments on commit d11a375

Please sign in to comment.