From c99fc7f05c60225fda794fd46c0bf6714e0edc72 Mon Sep 17 00:00:00 2001 From: gh0stkey <24655118+gh0stkey@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:54:34 +0800 Subject: [PATCH] Version: 1.0.1 Update --- src/main/java/caa/component/member/GeneratorDialog.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/caa/component/member/GeneratorDialog.java b/src/main/java/caa/component/member/GeneratorDialog.java index 9c1de8e..c7c7b66 100644 --- a/src/main/java/caa/component/member/GeneratorDialog.java +++ b/src/main/java/caa/component/member/GeneratorDialog.java @@ -271,7 +271,14 @@ private void addDataToTable(String data, DefaultTableModel model) { if (!data.isBlank()) { String[] rows = data.split("\\r?\\n"); for (String row : rows) { - String[] cellData = {row.split("=")[0], httpUtils.decodeParameter(row.split("=")[1])}; + String[] cellData; + + if (row.contains("=")) { + cellData = new String[]{row.split("=")[0], httpUtils.decodeParameter(row.split("=")[1])}; + } else { + cellData = new String[]{row}; + } + model.addRow(cellData); } UITools.deduplicateTableData(model);