mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
configure XStream security for GauntletIO
Catching the ConversionException prevents Gauntlet saves from being deleted in the event of improper or incomplete security settings on XStream. The null check in CSubmenuGauntletContests avoids an exception should there be no Gauntlet saves. Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -67,10 +67,12 @@ public enum CSubmenuGauntletContests implements ICDoc {
|
||||
private void updateData() {
|
||||
final File[] files = GauntletIO.getGauntletFilesLocked();
|
||||
final List<GauntletData> data = new ArrayList<GauntletData>();
|
||||
for (final File f : files) {
|
||||
final GauntletData gd = GauntletIO.loadGauntlet(f);
|
||||
if (gd != null) {
|
||||
data.add(gd);
|
||||
if (files != null) {
|
||||
for (final File f : files) {
|
||||
final GauntletData gd = GauntletIO.loadGauntlet(f);
|
||||
if (gd != null) {
|
||||
data.add(gd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user