Improve error handling
This commit is contained in:
@@ -73,8 +73,8 @@ public class APIFootballConnector {
|
||||
try {
|
||||
APIFootballMatch match = new APIFootballMatch((JSONObject) matchArray.get(i), this.season);
|
||||
matchesList.add(match);
|
||||
} catch (NullPointerException e) {
|
||||
logger.error("Could not create config for match: " + matchArray.get(i).toString());
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user