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

[Bug] Decks.select crash #10046

Closed
david-allison opened this issue Jan 1, 2022 · 4 comments
Closed

[Bug] Decks.select crash #10046

david-allison opened this issue Jan 1, 2022 · 4 comments
Labels
Bug Keep Open avoids the stale bot

Comments

@david-allison
Copy link
Member

User reported, have a collection with the issue

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.ichi2.utils.JSONObject.getString(java.lang.String)' on a null object reference
at com.ichi2.libanki.Decks.select(Decks.java:1)
at com.ichi2.libanki.Decks.current(Decks.java:2)
at com.ichi2.anki.DeckPicker.__renderPage(DeckPicker.java:32)
at com.ichi2.anki.DeckPicker$UpdateDeckListListener.actualOnPostExecute(DeckPicker.java:9)
at com.ichi2.anki.DeckPicker$UpdateDeckListListener.actualOnPostExecute(DeckPicker.java:1)
at com.ichi2.async.TaskListenerWithContext.onPostExecute(TaskListenerWithContext.java:2)
at com.ichi2.async.CollectionTask.onPostExecute(CollectionTask.java:3)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) 

2.15 and latest alpha

@david-allison
Copy link
Member Author

The provided collection only has conf defined. But this causes a crash so the user cannot change the Advanced settings

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2022

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Mar 2, 2022
@krmanik krmanik removed the Stale label Mar 3, 2022
@david-allison david-allison added the Keep Open avoids the stale bot label Mar 4, 2022
@s-deepak-kumar
Copy link
Contributor

Can You Please Assign It To Me?

@dae
Copy link
Contributor

dae commented Aug 31, 2023

Presumably closed by #14171.

@dae dae closed this as completed Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Keep Open avoids the stale bot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants