Skip to content

Commit

Permalink
Fix exception while starting a service (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
0utplay authored May 27, 2021
1 parent c446d97 commit 148cbb8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -40,7 +41,7 @@ public ServiceInfoSnapshot getCloudServiceByName(@NotNull String name) {

@Override
public Collection<ServiceInfoSnapshot> getCloudServices() {
return this.cloudNet.getCloudServiceManager().getGlobalServiceInfoSnapshots().values();
return new ArrayList<>(this.cloudNet.getCloudServiceManager().getGlobalServiceInfoSnapshots().values());
}

@Override
Expand Down

0 comments on commit 148cbb8

Please sign in to comment.