Fix for minor NPE causes by null player when updating Spout-based appearances
also updated Spout lib
This commit is contained in:
parent
c43d34af79
commit
dedb282498
BIN
lib/SpoutAPI.jar
BIN
lib/SpoutAPI.jar
Binary file not shown.
@ -194,12 +194,13 @@ public class SpoutFeatures
|
|||||||
if (viewedFaction == null)
|
if (viewedFaction == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer.getPlayer());
|
Player pViewed = viewed.getPlayer();
|
||||||
Player pViewed = viewed.getPlayer();
|
Player pViewer = viewer.getPlayer();
|
||||||
if (pViewed == null || viewer.getPlayer() == null)
|
if (pViewed == null || pViewer == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String viewedTitle = viewed.getTitle();
|
SpoutPlayer sPlayer = SpoutManager.getPlayer(pViewer);
|
||||||
|
String viewedTitle = viewed.getTitle();
|
||||||
Rel viewedRole = viewed.getRole();
|
Rel viewedRole = viewed.getRole();
|
||||||
|
|
||||||
if ((Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) && viewer != viewed)
|
if ((Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) && viewer != viewed)
|
||||||
|
Loading…
Reference in New Issue
Block a user