Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiskCache is null within the ImageService object. #20

Open
kpespisa opened this issue Mar 22, 2024 · 2 comments
Open

DiskCache is null within the ImageService object. #20

kpespisa opened this issue Mar 22, 2024 · 2 comments

Comments

@kpespisa
Copy link

Description

DiskCache is null within the ImageService object.

Steps to Reproduce

Attempt to access DiskCache property from ImageService

Expected Behavior

DiskCache is a valid object. Also that await ImageService.InvalidateCacheAsync(FFImageLoading.Cache.CacheType.All); could be called to invalidate both memory and disk cache.

Actual Behavior

DiskCache object is null

Basic Information

  • Version with issue: 1.10
  • Last known good version: unknown
  • Platform: iOS simulator

Reproduction Link / Code

`
private IImageService imageService = Application.Current.MainPage.Handler.MauiContext.Services.GetService<IImageService>();

//...

imageService.InvalidateMemoryCache(); // This works fine
await imageService.DiskCache..ClearAsync(); // This crashes because DiskCache is null
`

@microspaze
Copy link
Owner

DiskCache has not been set yet, I will update the code this week. Thanks for reporting.

@microspaze
Copy link
Owner

Fixed in latest version 1.1.1 https://www.nuget.org/packages/FFImageLoading.Maui/1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants