DisplayNameMixinAbstract handle null properly
This commit is contained in:
parent
6c1bd25ae9
commit
e74a45bd2b
@ -6,6 +6,8 @@ public abstract class DisplayNameMixinAbstract implements DisplayNameMixin
|
|||||||
{
|
{
|
||||||
public Mson getDisplayNameMson(Object senderObject, Object watcherObject)
|
public Mson getDisplayNameMson(Object senderObject, Object watcherObject)
|
||||||
{
|
{
|
||||||
return Mson.fromParsedMessage(this.getDisplayName(senderObject, watcherObject));
|
String displayName = this.getDisplayName(senderObject, watcherObject);
|
||||||
|
if (displayName == null) return null;
|
||||||
|
return Mson.fromParsedMessage(displayName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user