Added proper handle of null additional info
This commit is contained in:
parent
e05e681bd9
commit
94cf676d97
@ -37,8 +37,10 @@ public class RelationMsgConstructor {
|
||||
.setToIdMSB(entityRelation.getTo().getId().getMostSignificantBits())
|
||||
.setToIdLSB(entityRelation.getTo().getId().getLeastSignificantBits())
|
||||
.setToEntityType(entityRelation.getTo().getEntityType().name())
|
||||
.setType(entityRelation.getType())
|
||||
.setAdditionalInfo(JacksonUtil.toString(entityRelation.getAdditionalInfo()));
|
||||
.setType(entityRelation.getType());
|
||||
if (entityRelation.getAdditionalInfo() != null) {
|
||||
builder.setAdditionalInfo(JacksonUtil.toString(entityRelation.getAdditionalInfo()));
|
||||
}
|
||||
if (entityRelation.getTypeGroup() != null) {
|
||||
builder.setTypeGroup(getStringValue(entityRelation.getTypeGroup().name()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user