Added check against NPEs in toString.....
This commit is contained in:
parent
6989e646d6
commit
c6131c50bd
@ -159,12 +159,14 @@ public class Match extends DomainObject {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String projectIdeaId = projectIdea != null ? String.valueOf(projectIdea.getId()) : "";
|
||||
String supervisorId = supervisor != null ? supervisor.getId().toString() : "";
|
||||
String projectIdeaId = projectIdea != null && projectIdea.getId() != null ? String.valueOf(projectIdea.getId()) : "";
|
||||
String supervisorId = supervisor != null && supervisor.getId() != null ? supervisor.getId().toString() : "";
|
||||
|
||||
return "Match [id=" + (id != null ? id :"") + ", projectIdea=" + projectIdeaId
|
||||
+ ", supervisor=" + (supervisorId != null ? supervisorId :"") + ", type=" + (getType() != null ? getType() :"")
|
||||
+ ", status=" + (getStatus() != null ? getStatus() :"") + ", dateCreated=" + (getDateCreated() != null ? getDateCreated() :"") + "]";
|
||||
return "Match [id=" + (id != null ? id :"") +
|
||||
", status=" + (getStatus() != null ? getStatus() :"") +
|
||||
", projectIdea=" + projectIdeaId + ", supervisor=" + supervisorId +
|
||||
", type=" + (getType() != null ? getType() :"") +
|
||||
", dateCreated=" + (getDateCreated() != null ? getDateCreated() :"") + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user