mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-23 18:55:14 +01:00
Zap dynmap_webchat.json if error parsing it
This commit is contained in:
parent
9066fa0135
commit
6a95c9231a
@ -484,8 +484,10 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
|
||||
jsonMsgs = (JSONArray) parser.parse(inputFileReader);
|
||||
} catch (IOException ex) {
|
||||
Log.severe("Exception while reading JSON-file.", ex);
|
||||
storage.setStandaloneFile("dynmap_webchat.json", null); // Delete it
|
||||
} catch (ParseException ex) {
|
||||
Log.severe("Exception while parsing JSON-file.", ex);
|
||||
storage.setStandaloneFile("dynmap_webchat.json", null); // Delete it
|
||||
} finally {
|
||||
if(inputFileReader != null) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user