mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Fix NullPointerException in SkinsRestorerSkinUrlProvider.getSkinUrl during joins player without skin
This commit is contained in:
parent
578c66e2fe
commit
1ffa0e24ff
@ -27,6 +27,10 @@ public class SkinsRestorerSkinUrlProvider implements SkinUrlProvider {
|
|||||||
String skinName = mSkinsRestorerApi.getSkinName(playerName);
|
String skinName = mSkinsRestorerApi.getSkinName(playerName);
|
||||||
|
|
||||||
Object skinDataProperty = mSkinsRestorerApi.getSkinData(skinName == null ? playerName : skinName);
|
Object skinDataProperty = mSkinsRestorerApi.getSkinData(skinName == null ? playerName : skinName);
|
||||||
|
|
||||||
|
if (skinDataProperty == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
String skinDataPropertyValue;
|
String skinDataPropertyValue;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user