mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Image buffer null and length check
This commit is contained in:
parent
ec53c50c67
commit
7846f4f685
2 changed files with 2 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ namespace MapControl
|
|||
{
|
||||
var buffer = await LoadCachedBuffer(tile, uri, cacheName).ConfigureAwait(false);
|
||||
|
||||
if (buffer != null && buffer.Length > 0)
|
||||
if (buffer?.Length > 0)
|
||||
{
|
||||
Task<ImageSource> LoadImage() => tileSource.LoadImageAsync(buffer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue