Commit 95c8c886 authored by 技术部-任文超's avatar 技术部-任文超

NPE

parent 135c443c
...@@ -9,6 +9,7 @@ import java.io.Serializable; ...@@ -9,6 +9,7 @@ import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects;
/** /**
* Created by Miraculous on 2017/2/14. * Created by Miraculous on 2017/2/14.
...@@ -36,8 +37,12 @@ public class ContactRet implements Serializable { ...@@ -36,8 +37,12 @@ public class ContactRet implements Serializable {
ret.setName(c.getName()); ret.setName(c.getName());
ret.setPhoneNo(c.getPhoneNo()); ret.setPhoneNo(c.getPhoneNo());
ret.setRelation(c.getRelation()); ret.setRelation(c.getRelation());
if(Objects.nonNull(c.getCreatedAt())){
ret.setCreatedAt(c.getCreatedAt().getTime()); ret.setCreatedAt(c.getCreatedAt().getTime());
}
if(Objects.nonNull(c.getUpdateAt())) {
ret.setUpdateAt(c.getUpdateAt().getTime()); ret.setUpdateAt(c.getUpdateAt().getTime());
}
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment