diff options
Diffstat (limited to 'Juick/Classes/LowProfileImageLoader.cs')
-rw-r--r-- | Juick/Classes/LowProfileImageLoader.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Juick/Classes/LowProfileImageLoader.cs b/Juick/Classes/LowProfileImageLoader.cs index d1eb3da..a69c386 100644 --- a/Juick/Classes/LowProfileImageLoader.cs +++ b/Juick/Classes/LowProfileImageLoader.cs @@ -51,7 +51,7 @@ namespace Juick.Classes [SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "UriSource is applicable only to Image elements.")] public static void SetUriSource(Image obj, Uri value) { - if (null == obj) + if (null == obj || null == value) { throw new ArgumentNullException("obj"); } @@ -146,6 +146,8 @@ namespace Juick.Classes pendingRequests[index] = pendingRequests[count - 1]; pendingRequests.RemoveAt(count - 1); count--; + if (pendingRequest.Uri == null) + continue; if (pendingRequest.Uri.IsAbsoluteUri) { // Download from network |