mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Update NPE.
This commit is contained in:
parent
478c1be6fd
commit
3b4f5274e6
2 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,7 @@ dependencies {
|
|||
implementation 'it.unimi.dsi:fastutil-core:8.5.11'
|
||||
implementation 'commons-codec:commons-codec:1.15'
|
||||
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
|
||||
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:dd2983fe260c8e9b63a8187991bbf990c08f6e1c'
|
||||
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:85bff7662e56f5570dd0e5f8b666b4ffaf57a3b0'
|
||||
implementation 'com.github.FireMasterK:nanojson:c3c2bc80ee295e5c810b61d610951519ccf32b00'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'
|
||||
|
|
|
@ -22,11 +22,13 @@ import org.schabi.newpipe.extractor.comments.CommentsInfo;
|
|||
import org.schabi.newpipe.extractor.comments.CommentsInfoItem;
|
||||
import org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException;
|
||||
import org.schabi.newpipe.extractor.exceptions.GeographicRestrictionException;
|
||||
import org.schabi.newpipe.extractor.stream.Description;
|
||||
import org.schabi.newpipe.extractor.stream.StreamInfo;
|
||||
import org.schabi.newpipe.extractor.utils.JsonUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
@ -311,7 +313,7 @@ public class StreamHandlers {
|
|||
repliespage = mapper.writeValueAsString(comment.getReplies());
|
||||
|
||||
comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
|
||||
comment.getCommentId(), comment.getCommentText().getContent(), comment.getTextualUploadDate(),
|
||||
comment.getCommentId(), Optional.ofNullable(comment.getCommentText()).map(Description::getContent).orElse(null), comment.getTextualUploadDate(),
|
||||
substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
|
||||
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
|
||||
} catch (JsonProcessingException e) {
|
||||
|
@ -349,7 +351,7 @@ public class StreamHandlers {
|
|||
repliespage = mapper.writeValueAsString(comment.getReplies());
|
||||
|
||||
comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
|
||||
comment.getCommentId(), comment.getCommentText().getContent(), comment.getTextualUploadDate(),
|
||||
comment.getCommentId(), Optional.ofNullable(comment.getCommentText()).map(Description::getContent).orElse(null), comment.getTextualUploadDate(),
|
||||
substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
|
||||
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
|
||||
} catch (JsonProcessingException e) {
|
||||
|
|
Loading…
Reference in a new issue