Zap dynmap_webchat.json if error parsing it
This commit is contained in:
parent
129ed85457
commit
6571a59a26
1 changed files with 2 additions and 0 deletions
|
|
@ -484,8 +484,10 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
|
||||||
jsonMsgs = (JSONArray) parser.parse(inputFileReader);
|
jsonMsgs = (JSONArray) parser.parse(inputFileReader);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Log.severe("Exception while reading JSON-file.", ex);
|
Log.severe("Exception while reading JSON-file.", ex);
|
||||||
|
storage.setStandaloneFile("dynmap_webchat.json", null); // Delete it
|
||||||
} catch (ParseException ex) {
|
} catch (ParseException ex) {
|
||||||
Log.severe("Exception while parsing JSON-file.", ex);
|
Log.severe("Exception while parsing JSON-file.", ex);
|
||||||
|
storage.setStandaloneFile("dynmap_webchat.json", null); // Delete it
|
||||||
} finally {
|
} finally {
|
||||||
if(inputFileReader != null) {
|
if(inputFileReader != null) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue