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

The getter 'bytes' was called on null. #52

Closed
roymckenzie opened this issue Jan 30, 2020 · 4 comments
Closed

The getter 'bytes' was called on null. #52

roymckenzie opened this issue Jan 30, 2020 · 4 comments

Comments

@roymckenzie
Copy link

roymckenzie commented Jan 30, 2020

I am unable to open a keepass database on Android 9, AuthPass version 1.3.0+115. I have used KeePassXC on Linux to save the database. I have also used NextCloud Keeweb to export the database. They both export them in Keepass 2 format. I am getting the same error that was mentioned below

...I get this error when I try to decrypt the database:

"Unknown error while trying to open file. NoSuchMethodError: The getter 'bytes' was called on null.
Receiver: null
Tried calling: bytes"

Originally posted by @northorsouth in #48 (comment)

@hpoul
Copy link
Collaborator

hpoul commented Jan 30, 2020

This very much sounds like you are saving in kdbx 4 format. In KeepassXC you can select Database -> Database settings ... Security ... Encryption Settings ... and use kdbx 3.1 instead of kdbx 4.

Screenshot 2020-01-30 at 22 30 01

Please verify that it is saving in kdbx 3.1 format. AuthPass does not (yet) support kdbx 4.x (because there is no dart implementation for argon 2 and dart:ffi support (native C interop) is still in a very early phase for dart/flutter)

@hpoul
Copy link
Collaborator

hpoul commented Feb 6, 2020

@roymckenzie have you tried with kdbx 3.1? In the latest version i have also improved the error message so you should see if you are using an unsupported kdbx file version>

@roymckenzie
Copy link
Author

Thank you!

@hpoul
Copy link
Collaborator

hpoul commented Mar 19, 2020

fyi authpass now supports kdbx 4.x so this problem should be resolved in the latest version (1.5.2)

@hpoul hpoul closed this as completed Mar 19, 2020
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