File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/iexec/worker/feign Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717import org .springframework .stereotype .Service ;
1818import org .web3j .crypto .ECKeyPair ;
1919
20+ import java .util .ArrayList ;
2021import java .util .Collections ;
2122import java .util .List ;
2223import java .util .Optional ;
@@ -107,7 +108,7 @@ public void registerWorker(WorkerConfigurationModel model) {
107108 }
108109
109110 public List <InterruptedReplicateModel > getInterruptedReplicates (long lastAvailableBlockNumber ) {
110- List <InterruptedReplicateModel > interruptedReplicates = null ;
111+ List <InterruptedReplicateModel > interruptedReplicates = new ArrayList <>() ;
111112
112113 try {
113114 interruptedReplicates = replicateClient .getInterruptedReplicates (lastAvailableBlockNumber , getToken ());
@@ -121,7 +122,7 @@ public List<InterruptedReplicateModel> getInterruptedReplicates(long lastAvailab
121122 }
122123 }
123124
124- return interruptedReplicates != null ? interruptedReplicates : Collections . emptyList () ;
125+ return interruptedReplicates ;
125126 }
126127
127128 public List <String > getTasksInProgress () {
You can’t perform that action at this time.
0 commit comments