Fix for rare SpoutPlayer exception when player logs off while spout features related to them are updating
This commit is contained in:
parent
86f80f0421
commit
22fe84f32c
@ -219,11 +219,12 @@ public class SpoutFeatures
|
||||
if (viewedFaction == null)
|
||||
return;
|
||||
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer.getPlayer());
|
||||
Player pViewed = viewed.getPlayer();
|
||||
if (pViewed == null || viewer.getPlayer() == null)
|
||||
Player pViewer = viewer.getPlayer();
|
||||
if (pViewed == null || pViewer == null)
|
||||
return;
|
||||
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(pViewer);
|
||||
String viewedTitle = viewed.getTitle();
|
||||
Role viewedRole = viewed.getRole();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user