Fixed the Legendosh bug again

Fixed NPE at getFlairState()
This commit is contained in:
Norbi Peti 2016-12-19 20:25:29 +01:00
parent 15ece1a3dc
commit 1bb3ddb0ee

View file

@ -38,7 +38,10 @@ public class ChatPlayer extends TBMCPlayer {
}
public FlairStates getFlairState() {
return getEnumData(FlairStates.class);
FlairStates data = getEnumData(FlairStates.class);
if (data == null)
setFlairState(data = FlairStates.NoComment);
return data;
}
public void setFlairState(FlairStates state) {