Skip to content

Commit

Permalink
fixed NPE in calendar conflict check. close #2704
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Nov 25, 2024
1 parent fd5875c commit ab95959
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions j-lawyer-client/src/de/costache/calendar/model/CalendarEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ public String toString() {
}

public String getCaseLawyer() {
return this.getCaseDto().getLawyer();
if(this.getCaseDto()!=null)
return this.getCaseDto().getLawyer();
return "";
}

public String getAssignee() {
Expand All @@ -308,28 +310,38 @@ public enum Property {
* @return the caseId
*/
public String getCaseId() {
return this.getCaseDto().getId();
if(this.getCaseDto()!=null)
return this.getCaseDto().getId();
return "";

}

/**
* @return the caseNumber
*/
public String getCaseNumber() {
return this.getCaseDto().getFileNumber();
if(this.getCaseDto()!=null)
return this.getCaseDto().getFileNumber();
return "";

}

/**
* @return the caseName
*/
public String getCaseName() {
return this.getCaseDto().getName();
if(this.getCaseDto()!=null)
return this.getCaseDto().getName();
return "";
}

/**
* @return the caseReason
*/
public String getCaseReason() {
return this.getCaseDto().getReason();
if(this.getCaseDto()!=null)
return this.getCaseDto().getReason();
return "";
}

/**
Expand Down

0 comments on commit ab95959

Please sign in to comment.