Skip to content

gracefully handle JNI errors during ConnectedWallet.connect() #15

Closed as not planned

Description

@overheadhunter

See cryptomator/cryptomator#1694:

Loading the FFI libs may fail, in which case we expect KDEWallet to not be available instead of the application crashing. Catching the UnsatisfiedLinkError in here should fix this:

static Optional<ConnectedWallet> connect() {
try {
return Optional.of(new ConnectedWallet(getNewConnection()));
} catch (DBusException e) {
LOG.warn("Connecting to D-Bus failed.", e);
return Optional.empty();
}
}

Activity

  1. overheadhunter commented on Jul 4, 2022

    @overheadhunter
    MemberAuthor
  2. infeo commented on Feb 10, 2026

    @infeo
    Member

    Obsolete with #125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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