Fixed the Legendosh bug again
Fixed NPE at getFlairState()
This commit is contained in:
parent
15ece1a3dc
commit
1bb3ddb0ee
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue