shh
Some checks failed
Fetch new Pia Servers / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 15s

This commit is contained in:
Lee 2024-04-27 05:08:05 +01:00
parent fc7654ccd5
commit 75c266893a

@ -43,7 +43,7 @@ public class Main {
// Load the serversFile from the file
String serversJson = Files.readString(serversFile.toPath());
System.out.println(serversJson);
List<PiaServer> servers = GSON.fromJson(serversJson, new TypeToken<PiaServer>() {}.getType());
List<PiaServer> servers = GSON.fromJson(serversJson, new TypeToken<List<PiaServer>>() {}.getType());
if (servers == null) {
servers = new ArrayList<>();
}