mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-15 06:40:29 +05:30
Fix npe.
This commit is contained in:
parent
0129cc58ce
commit
4c08c350e8
@ -343,7 +343,7 @@ public class ResponseHelper {
|
|||||||
StreamInfoItem stream = (StreamInfoItem) item;
|
StreamInfoItem stream = (StreamInfoItem) item;
|
||||||
items.add(new SearchStream(item.getName(), rewriteURL(item.getThumbnailUrl()),
|
items.add(new SearchStream(item.getName(), rewriteURL(item.getThumbnailUrl()),
|
||||||
item.getUrl().substring(23), stream.getTextualUploadDate(), stream.getUploaderName(),
|
item.getUrl().substring(23), stream.getTextualUploadDate(), stream.getUploaderName(),
|
||||||
stream.getUploaderUrl().substring(23), stream.getViewCount(), stream.getDuration(),
|
optionalSubstring(stream.getUploaderUrl(), 23), stream.getViewCount(), stream.getDuration(),
|
||||||
stream.isUploaderVerified()));
|
stream.isUploaderVerified()));
|
||||||
break;
|
break;
|
||||||
case CHANNEL:
|
case CHANNEL:
|
||||||
|
Loading…
Reference in New Issue
Block a user