TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.72k stars 3.08k forks source link

Get suggestions on search error #8848

Closed WorkHard4470 closed 2 years ago

WorkHard4470 commented 2 years ago

Checklist

Affected version

0.23.2

Steps to reproduce the bug

Appears to have a problem on search suggestions as threw us a toast notification as error message

Expected behavior

Trying to find suggestions but Suggestion Observer are broken. You will soon try to search content.

Actual behavior

Please see the details given on that section. This happened if the suggestion observer does not work when you try to search the YouTube content.

Screenshots/Screen recordings

No response

Logs

Get suggestions on search are temporarily broken. Affected version: 0.23.2 (bug fix version)

Exception

java.lang.NullPointerException: Attempt to read from field 'androidx.recyclerview.widget.RecyclerView org.schabi.newpipe.databinding.FragmentSearchBinding.suggestionsList' on a null object reference in method 'void org.schabi.newpipe.fragments.list.search.SearchFragment.handleSuggestions(java.util.List)'
    at org.schabi.newpipe.fragments.list.search.SearchFragment.handleSuggestions(SearchFragment.java:950)
    at org.schabi.newpipe.fragments.list.search.SearchFragment.lambda$initSuggestionObserver$14(SearchFragment.java:791)
    at org.schabi.newpipe.fragments.list.search.SearchFragment.$r8$lambda$HpL953c8k1JPyNfRPyrPNskf55Q(Unknown Source:0)
    at org.schabi.newpipe.fragments.list.search.SearchFragment$$ExternalSyntheticLambda11.accept(Unknown Source:4)
    at io.reactivex.rxjava3.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
    at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:233)
    at android.os.Looper.loop(Looper.java:344)
    at android.app.ActivityThread.main(ActivityThread.java:8248)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)


Affected Android/Custom ROM version

Android 12

Affected device model

realme 8 4G

Additional information

Hoping the developer will fix their only one bug, NOT more bugs in the future public beta versions.

WorkHard4470 commented 2 years ago

``