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

Supplying null as a callback to WKWebsiteDataStore.getDefaultDataStore.removeData causes crash #799

Open
1 of 3 tasks
klianc09 opened this issue Nov 13, 2024 · 0 comments

Comments

@klianc09
Copy link

Issue details

Calling WKWebsiteDataStore.getDefaultDataStore().removeData and passing 'null' as the Runnable callback will cause a crash.
Usually when a Runnable is used as a callback handler, one can just pass in null, and it will work fine.
Workaround is simple, just supply an empty lambda.

Reproduction steps/code

WKWebsiteDataStore.getDefaultDataStore().removeData(WKWebsiteDataStore.getAllWebsiteDataTypes(), NSDate.getDistantPast(), null);

Configuration

Build Tools:

  • IDEA plugin
  • Eclipse plugin
  • Gradle plugin

Versions:

  • Robovm: 2.3.22
  • XCode: 15.4
  • JDK: OpenJDK 17

Build Targets:

This is tested on an M1, with the iPhone 15 Simulator, (running iOS 17.5)

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

1 participant