Skip to content

Commit

Permalink
Merge pull request #10700 from TeamNewPipe/newpipe_0.26.1
Browse files Browse the repository at this point in the history
Newpipe 0.26.1
  • Loading branch information
TobiGr authored Dec 26, 2023
2 parents 6762993 + 3df21ad commit 49429ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
resValue "string", "app_name", "NewPipe"
minSdk 21
targetSdk 33
versionCode 995
versionName "0.26.0"
versionCode 996
versionName "0.26.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.schabi.newpipe.extractor.channel.tabs.ChannelTabInfo;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory;
import org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler;
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
import org.schabi.newpipe.fragments.list.BaseListInfoFragment;
Expand Down Expand Up @@ -128,10 +129,13 @@ public void handleResult(@NonNull final ChannelTabInfo result) {
// once `handleResult` is called, the parsed data was already saved to cache, so
// we can discard any raw data in ReadyChannelTabListLinkHandler and create a
// link handler with identical properties, but without any raw data
tabHandler = result.getService()
.getChannelTabLHFactory()
.fromQuery(tabHandler.getId(), tabHandler.getContentFilters(),
tabHandler.getSortFilter());
final ListLinkHandlerFactory channelTabLHFactory = result.getService()
.getChannelTabLHFactory();
if (channelTabLHFactory != null) {
// some services do not not have a ChannelTabLHFactory
tabHandler = channelTabLHFactory.fromQuery(tabHandler.getId(),
tabHandler.getContentFilters(), tabHandler.getSortFilter());
}
} catch (final ParsingException e) {
// silently ignore the error, as the app can continue to function normally
Log.w(TAG, "Could not recreate channel tab handler", e);
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/996.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed a NullPointerException when opening a channel / conference in media.ccc.de.
The Grinch tried to break our Christmas gift to you, but we fixed it.

0 comments on commit 49429ff

Please sign in to comment.