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

boolean java.util.concurrent.atomic.AtomicBoolean.get()' on a null object reference #77

Closed
ArthurSav opened this issue Jun 4, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@ArthurSav
Copy link

Happens in an async task. I try to delete everything in a Repository and then re-insert a new list of objects - not sure how to reproduce.

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.concurrent.atomic.AtomicBoolean.get()' on a null object reference at org.dizitart.no2.internals.IndexingService.removeIndexEntry(IndexingService.java:152) at org.dizitart.no2.internals.DataService.remove(DataService.java:227) at org.dizitart.no2.internals.NitriteService.remove(NitriteService.java:372) at org.dizitart.no2.internals.DefaultNitriteCollection.remove(DefaultNitriteCollection.java:360) at org.dizitart.no2.objects.DefaultObjectRepository.remove(DefaultObjectRepository.java:176) at org.dizitart.no2.objects.DefaultObjectRepository.remove(DefaultObjectRepository.java:170) at io.app.Database.deleteUserStats(Database.java:258) at io.app.Database.saveUserStats(Database.java:198) at io.app.async.StatsSync.doInBackground(StatsSync.java:39) at io.app.async.StatsSync.doInBackground(StatsSync.java:13) at android.os.AsyncTask$2.call(AsyncTask.java:304) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762)

anidotnet added a commit that referenced this issue Jun 5, 2018
@anidotnet anidotnet self-assigned this Jun 5, 2018
@anidotnet anidotnet added the bug label Jun 5, 2018
@anidotnet anidotnet added this to the 3.0.1 milestone Jun 5, 2018
@anidotnet
Copy link
Contributor

@ArthurSav the latest snapshot should have the fix for it.

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

No branches or pull requests

2 participants