Fix for minor NPE causes by null player when updating Spout-based appearances

also updated Spout lib
This commit is contained in:
Brettflan 2011-11-06 15:27:18 -06:00
parent c43d34af79
commit dedb282498
2 changed files with 7 additions and 6 deletions

Binary file not shown.

View File

@ -194,12 +194,13 @@ public class SpoutFeatures
if (viewedFaction == null)
return;
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer.getPlayer());
Player pViewed = viewed.getPlayer();
if (pViewed == null || viewer.getPlayer() == null)
return;
Player pViewed = viewed.getPlayer();
Player pViewer = viewer.getPlayer();
if (pViewed == null || pViewer == null)
return;
String viewedTitle = viewed.getTitle();
SpoutPlayer sPlayer = SpoutManager.getPlayer(pViewer);
String viewedTitle = viewed.getTitle();
Rel viewedRole = viewed.getRole();
if ((Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) && viewer != viewed)