add null point-2

This commit is contained in:
cj li 2020-05-10 15:02:53 +09:00
parent 46c2356a51
commit 6376681ec3
2 changed files with 6 additions and 5 deletions

View file

@ -57,8 +57,9 @@ class OwnerController {
@GetMapping("/owners/new")
public String initCreationForm(Map<String, Object> model) {
Owner owner = new Owner();
model.put("owner", owner);
//Owner owner = new Owner();
Owner owner = null;
model.put("owner", owner);
return VIEWS_OWNER_CREATE_OR_UPDATE_FORM;
}

View file

@ -88,9 +88,9 @@ public class Pet extends NamedEntity {
}
protected Set<Visit> getVisitsInternal() {
// if (this.visits == null) {
// this.visits = new HashSet<>();
// }
if (this.visits == null) {
this.visits = new HashSet<>();
}
return this.visits;
}