possible fix for nextplayer nullpointer
This commit is contained in:
@@ -539,9 +539,17 @@ public class Manager {
|
||||
}
|
||||
|
||||
ProxiedPlayer nextplayer = s.getQueue().get(0);
|
||||
if(nextplayer == null) {
|
||||
if(s.getQueue().size() > 0) {
|
||||
s.getQueue().remove(0);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!s.canAccess(nextplayer)) continue;
|
||||
|
||||
|
||||
|
||||
while(nextplayer.getServer().getInfo().getName().equals(s.getName())) {
|
||||
s.getQueue().remove(nextplayer);
|
||||
if(s.getQueue().size() <= 0) break;
|
||||
|
||||
Reference in New Issue
Block a user