mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-09-12 14:28:28 +02:00
Final attempt to fix rare non-fatal NPE from Player ending up returning null while updating Spout appearance features
This commit is contained in:
parent
460d280387
commit
3af6f2737a
@ -195,6 +195,10 @@ public class SpoutFeatures
|
||||
if (viewedFaction == null)
|
||||
return;
|
||||
|
||||
// these still end up returning null on occasion at this point, mucking up the SpoutManager.getPlayer() method
|
||||
if (viewer.getPlayer() == null || viewed.getPlayer() == null)
|
||||
return;
|
||||
|
||||
SpoutPlayer pViewer = SpoutManager.getPlayer(viewer.getPlayer());
|
||||
SpoutPlayer pViewed = SpoutManager.getPlayer(viewed.getPlayer());
|
||||
if (pViewed == null || pViewer == null)
|
||||
|
Loading…
Reference in New Issue
Block a user