mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 16:30:29 +05:30
Add null check for pubsub.
This commit is contained in:
parent
a1ed146924
commit
e03f2661b4
@ -44,6 +44,7 @@ public class Main {
|
|||||||
Collections.shuffle(channels);
|
Collections.shuffle(channels);
|
||||||
|
|
||||||
for (String channelId : channels)
|
for (String channelId : channels)
|
||||||
|
if (channelId != null)
|
||||||
Multithreading.runAsyncLimitedPubSub(() -> {
|
Multithreading.runAsyncLimitedPubSub(() -> {
|
||||||
Session sess = DatabaseSessionFactory.createSession();
|
Session sess = DatabaseSessionFactory.createSession();
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user