Skip to content

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

@klianc09

Description

@klianc09

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)

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