Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Constructor error with null password #59

Open
carlpoole opened this issue Mar 27, 2017 · 1 comment
Open

Constructor error with null password #59

carlpoole opened this issue Mar 27, 2017 · 1 comment
Labels
Milestone

Comments

@carlpoole
Copy link

When I try to create an instance of SharedPreferences using the constructor with null as the password as shown in the README:

new SecurePreferences(context,null,"name_of_file.xml");

I get an error:

Cannot resolve constructor 'SecurePreferences(android.content.Context, null, java.lang.String)'

I was able to workaround the issue by passing empty string as the password instead. It looks like the behavior is the same, and the lib will generate a key for me.

@scottyab scottyab added the bug label Mar 28, 2017
@scottyab
Copy link
Owner

Thanks for reporting this.

@scottyab scottyab modified the milestone: v0.2 May 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants