From fc99e08ae65ed1acf35b781eacabd105e097adcd Mon Sep 17 00:00:00 2001
From: lantzelot-swe <75668734+lantzelot-swe@users.noreply.github.com>
Date: Thu, 21 Dec 2023 14:03:38 +0100
Subject: [PATCH] fix: exception when selecting individual games to export
---
pom.xml | 2 +-
src/main/java/se/lantz/model/GameListModel.java | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 53ecf28..a9c7ce7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
se.lantz
PCUAEManager
- 2.15.1
+ 2.15.2
PCUAEManager
Cp1252
diff --git a/src/main/java/se/lantz/model/GameListModel.java b/src/main/java/se/lantz/model/GameListModel.java
index 8433127..61f0125 100644
--- a/src/main/java/se/lantz/model/GameListModel.java
+++ b/src/main/java/se/lantz/model/GameListModel.java
@@ -1,5 +1,6 @@
package se.lantz.model;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@@ -13,7 +14,7 @@ import se.lantz.model.data.GameListData;
public class GameListModel extends DefaultListModel
{
- private List currentGameList = Collections.emptyList();
+ private List currentGameList = new ArrayList<>();
private List filterPrefixList = Arrays.asList("a:", "c:", "y:", "v:");