[Bug] Sorting by old crashes the app, and sends to crash again after start
Crash output shows this:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference at com.rubenmayayo.reddit.models.reddit.SubmissionModel.X0(SubmissionModel.java:31) at com.rubenmayayo.reddit.models.reddit.SubmissionModel.t2(SubmissionModel.java:150) at com.rubenmayayo.reddit.models.reddit.SubmissionModel.n2(SubmissionModel.java:242) at com.rubenmayayo.reddit.models.reddit.SubmissionModel.d3(SubmissionModel.java:24) at yb.l.l(PostPaginator.java:11) at yb.l.f(PostPaginator.java:3) at yb.h$a.a(LemmyPaginator.java:17) at retrofit2.e$b$a$a.run(DefaultCallAdapterFactory.java:38) at android.os.Handler.handleCallback(Handler.java:914) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
If you as a user encountered this, you can disable it via turning off the internet and switching the sorting method to something different; then turning on the network again.
Not able to reproduce this either with posts or comments (including the askreddit thread with 2k comments) on a pixel 7 running Android 14, but I'll take a look on my old phone later on and see if I can reproduce it on that (Oppo A72, Android 11)