skip hive attribute if it is missing
This commit is contained in:
parent
d026203c91
commit
ed03299d08
@ -23,7 +23,10 @@ public class PacRemote extends AbstractRemote {
|
||||
Pac pac = (Pac) entity;
|
||||
resultMap.put("name", pac.getName());
|
||||
resultMap.put("id", Long.toString(pac.getId()));
|
||||
resultMap.put("hive", pac.getHiveName());
|
||||
final String hiveName = pac.getHiveName();
|
||||
if (hiveName != null && !hiveName.isEmpty()) {
|
||||
resultMap.put("hive", hiveName);
|
||||
}
|
||||
resultMap.put("customer", pac.getCustomer().getName());
|
||||
resultMap.put("curinetaddr", pac.getCurINetAddr().getInet4Addr());
|
||||
resultMap.put("created", TextUtil.format(pac.getCreated()));
|
||||
|
Loading…
Reference in New Issue
Block a user