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

Problem with getting data from Set<String> #30

Closed
SavinMike opened this issue Oct 25, 2017 · 5 comments
Closed

Problem with getting data from Set<String> #30

SavinMike opened this issue Oct 25, 2017 · 5 comments
Assignees

Comments

@SavinMike
Copy link

SavinMike commented Oct 25, 2017

I'm trying to save bundle to binaryPrefs for that I'm recursively saving <key, value> to Set<String> and adding separator to key for saving deep of bundle data. But when i try to get data from this set sometimes i catch next error:

key's value is zero bytes for deserialize at com.ironz.binaryprefs.task.FutureBarrier.completeBlockingWithResultUnsafe(FutureBarrier.java)
at com.ironz.binaryprefs.init.LazyFetchStrategy.fetchCacheCandidates(LazyFetchStrategy.java)
getInternal(LazyFetchStrategy.java)
at com.ironz.binaryprefs.init.LazyFetchStrategy.getValue(LazyFetchStrategy.java)
getAll(LazyFetchStrategy.java)
contains(LazyFetchStrategy.java)
access$000(LazyFetchStrategy.java)
at com.ironz.binaryprefs.BinaryPreferences.getAll(BinaryPreferences.java)

@iamironz
Copy link
Contributor

iamironz commented Oct 25, 2017

Hi Mike!
Thanks for submitting the issue. I will solve your problem ASAP.

Regards,
Alexander

@iamironz
Copy link
Contributor

iamironz commented Nov 12, 2017

Mike please can you provide binaryprefs version, builder which is defined preferences configuration and also an code which saves Set<String>.

Regards,
Alenxander

@SavinMike
Copy link
Author

Binaryprefs version is 1.0.0-BETA-2

new BinaryPreferencesBuilder(context)
				.name(DEFAULT_PREFS)
				.supportInterProcess(false)
				.exceptionHandler(exceptionHandler)
				.build();

@iamironz
Copy link
Contributor

Can you please show me code which saves preferences recursively?

@iamironz iamironz self-assigned this Mar 16, 2018
@iamironz
Copy link
Contributor

Also please consider to use stable version 1.0.0

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

No branches or pull requests

2 participants