Skip to content

Commit

Permalink
Fix for Method 'GetMapStaticImageAsync' throws 'NullReferenceExceptio…
Browse files Browse the repository at this point in the history
…n' when pathes used (#42955)
  • Loading branch information
jecmenicanikola committed Mar 27, 2024
1 parent aee8e76 commit 4a4709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/maps/Azure.Maps.Rendering/src/MapsRenderingClient.cs
Expand Up @@ -182,7 +182,7 @@ public virtual async Task<Response<Stream>> GetMapStaticImageAsync(GetMapStaticI
List<string> paths = null;
if (options?.ImagePathStyles != null)
{
pushpins = new List<string>();
paths = new List<string>();
foreach (var path in options?.ImagePathStyles)
{
paths.Add(path.ToQueryString());
Expand Down

0 comments on commit 4a4709c

Please sign in to comment.