Update NPE.

This commit is contained in:
Kavin 2022-12-07 23:13:10 +00:00
parent f6358db5d1
commit bb8ec601f1
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ dependencies {
implementation 'it.unimi.dsi:fastutil-core:8.5.11' implementation 'it.unimi.dsi:fastutil-core:8.5.11'
implementation 'commons-codec:commons-codec:1.15' implementation 'commons-codec:commons-codec:1.15'
implementation 'org.bouncycastle:bcprov-jdk15on:1.70' implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:bfefb49333a8129dc6704d7bac531aea2c8624cd' implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:dd2983fe260c8e9b63a8187991bbf990c08f6e1c'
implementation 'com.github.FireMasterK:nanojson:c3c2bc80ee295e5c810b61d610951519ccf32b00' implementation 'com.github.FireMasterK:nanojson:c3c2bc80ee295e5c810b61d610951519ccf32b00'
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1' implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1' implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'

View file

@ -311,7 +311,7 @@ public class StreamHandlers {
repliespage = mapper.writeValueAsString(comment.getReplies()); repliespage = mapper.writeValueAsString(comment.getReplies());
comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()), comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(), comment.getCommentId(), comment.getCommentText().getContent(), comment.getTextualUploadDate(),
substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(), substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified())); comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
} catch (JsonProcessingException e) { } catch (JsonProcessingException e) {
@ -349,7 +349,7 @@ public class StreamHandlers {
repliespage = mapper.writeValueAsString(comment.getReplies()); repliespage = mapper.writeValueAsString(comment.getReplies());
comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()), comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(), comment.getCommentId(), comment.getCommentText().getContent(), comment.getTextualUploadDate(),
substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(), substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified())); comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
} catch (JsonProcessingException e) { } catch (JsonProcessingException e) {