fix concurrent modification exception fetching disputes
This commit is contained in:
parent
17d94f346c
commit
ab94b2d6fa
@ -71,7 +71,7 @@ public class CoreDisputesService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<Dispute> getDisputes() {
|
public List<Dispute> getDisputes() {
|
||||||
return arbitrationManager.getDisputesAsObservableList();
|
return new ArrayList<>(arbitrationManager.getDisputesAsObservableList());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Dispute getDispute(String tradeId) {
|
public Dispute getDispute(String tradeId) {
|
||||||
|
@ -222,7 +222,9 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ObservableList<Dispute> getDisputesAsObservableList() {
|
public ObservableList<Dispute> getDisputesAsObservableList() {
|
||||||
return disputeListService.getObservableList();
|
synchronized(disputeListService.getDisputeList()) {
|
||||||
|
return disputeListService.getObservableList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNrOfDisputes(boolean isBuyer, Contract contract) {
|
public String getNrOfDisputes(boolean isBuyer, Contract contract) {
|
||||||
|
Loading…
Reference in New Issue
Block a user