Fixed issue with drives list not being initialized first as an array. Was silently killing the DeviceService and not saving new devices.
This commit is contained in:
27518
scripts/cve-sync.log
27518
scripts/cve-sync.log
File diff suppressed because it is too large
Load Diff
@@ -77,7 +77,7 @@ public class Devices {
|
||||
|
||||
@OneToMany(mappedBy = "device", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@JsonManagedReference
|
||||
private List<Drive> drives;
|
||||
private List<Drive> drives = new ArrayList<>();
|
||||
|
||||
@OneToMany(mappedBy = "device", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@JsonManagedReference
|
||||
|
||||
Reference in New Issue
Block a user