Skip to content

ImageLoaderTask.TryLoadFromMemoryCacheAsync(string,bool,bool,bool) is throwing NullReferenceException when the cache contains null #1523

Open
@thisisthekap

Description

@thisisthekap

🐛 Bug Report

If for whatever reason the dictionary MemoryCache contains null as value for an existing dictionary entry, the method will result in throwing a NullReferenceException.

Expected behavior

As the Method is named "TryLoadFromMemoryCacheAsync", the method should just return false instead

Reproduction steps

Reported by our production error reporting, unfortunately no reproduction steps available

Configuration

Version: 2.4.11.982

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions