Skip to content

AppCleaner: Fix null pointer exception when clearing individual apps that have no inaccessible caches#895

Merged
d4rken merged 2 commits into
mainfrom
fix_appcleaner_npe_751
Dec 27, 2023
Merged

AppCleaner: Fix null pointer exception when clearing individual apps that have no inaccessible caches#895
d4rken merged 2 commits into
mainfrom
fix_appcleaner_npe_751

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Dec 26, 2023

Fixes #751

The ?: ... fallback wasn't being used

The error came from trying to calculate the sum of cleared inaccessible caches, but there were none, because it shouldn't have been attempted.

Now we process a `ExpendablesFilter.Match` and the action applied to matches does not have to be "deletion".
This paves the way for filter that do other more than just delete files, e.g. a filter that compresses data.
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner labels Dec 26, 2023
@d4rken d4rken merged commit f6255a1 into main Dec 27, 2023
@d4rken d4rken deleted the fix_appcleaner_npe_751 branch December 27, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected c: AppCleaner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Error - NullPointerException" dialog appears when clearing cache with AppCleaner

1 participant