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

Error on chore listing #872

Open
GeoffreyFrogeye opened this issue Jun 30, 2024 · 0 comments
Open

Error on chore listing #872

GeoffreyFrogeye opened this issue Jun 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GeoffreyFrogeye
Copy link

If I open the chores list, the list appears empty, and I get the error: Error: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference. Only the "Sort: Due date" shows a drop-down when clicked.

Clicking the 🔍 button (not necessarily making a search), and the list is now filled, until you exit and reload the view again. The "Sort: Due date" works, the other still don't.

App version: 3.5.2
Server version: 4.2.0 (I'm aware thre wasn't a release explicitely mentionning this release yet, hope this report still helps)

Tested on: My own instance, not a fresh one. Intersting to note is Setting('FEATURE_FLAG_CHORES_ASSIGNMENTS', false);. Removing it doesn't help, although maybe it some chores were created when this flag was on. I could do further testing if requested.

Full stack trace ``` Error: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference
at xyz.zedler.patrick.grocy.util.SortUtil$$ExternalSyntheticLambda29.compare(R8$$SyntheticClass:22)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:360)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1351)
at java.util.ArrayList.sort(ArrayList.java:1738)
at java.util.Collections.sort(Collections.java:208)
at xyz.zedler.patrick.grocy.util.ConfigUtil$$ExternalSyntheticLambda2.actionFinished(R8$$SyntheticClass:82)
at xyz.zedler.patrick.grocy.model.User$2$$ExternalSyntheticLambda5.accept(R8$$SyntheticClass:22)
at io.reactivex.rxjava3.internal.operators.single.SingleDoOnSuccess$DoOnSuccess.onSuccess(SingleDoOnSuccess.java:7)
at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:13)
at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:3)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8501)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

</details>
@patzly patzly added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants