Skip to content

Commit 49429ff

Browse files
authored
Merge pull request #10700 from TeamNewPipe/newpipe_0.26.1
Newpipe 0.26.1
2 parents 6762993 + 3df21ad commit 49429ff

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ android {
2020
resValue "string", "app_name", "NewPipe"
2121
minSdk 21
2222
targetSdk 33
23-
versionCode 995
24-
versionName "0.26.0"
23+
versionCode 996
24+
versionName "0.26.1"
2525

2626
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2727

app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelTabFragment.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.schabi.newpipe.extractor.channel.tabs.ChannelTabInfo;
1818
import org.schabi.newpipe.extractor.exceptions.ParsingException;
1919
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
20+
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory;
2021
import org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler;
2122
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
2223
import org.schabi.newpipe.fragments.list.BaseListInfoFragment;
@@ -128,10 +129,13 @@ public void handleResult(@NonNull final ChannelTabInfo result) {
128129
// once `handleResult` is called, the parsed data was already saved to cache, so
129130
// we can discard any raw data in ReadyChannelTabListLinkHandler and create a
130131
// link handler with identical properties, but without any raw data
131-
tabHandler = result.getService()
132-
.getChannelTabLHFactory()
133-
.fromQuery(tabHandler.getId(), tabHandler.getContentFilters(),
134-
tabHandler.getSortFilter());
132+
final ListLinkHandlerFactory channelTabLHFactory = result.getService()
133+
.getChannelTabLHFactory();
134+
if (channelTabLHFactory != null) {
135+
// some services do not not have a ChannelTabLHFactory
136+
tabHandler = channelTabLHFactory.fromQuery(tabHandler.getId(),
137+
tabHandler.getContentFilters(), tabHandler.getSortFilter());
138+
}
135139
} catch (final ParsingException e) {
136140
// silently ignore the error, as the app can continue to function normally
137141
Log.w(TAG, "Could not recreate channel tab handler", e);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed a NullPointerException when opening a channel / conference in media.ccc.de.
2+
The Grinch tried to break our Christmas gift to you, but we fixed it.

0 commit comments

Comments
 (0)