From 00f36170f16e77946a792f232ea99364c6c793d0 Mon Sep 17 00:00:00 2001 From: Mike <76-Mike@users.noreply.git.krews.org> Date: Tue, 2 Jun 2020 11:35:46 +0200 Subject: [PATCH] Resolve syntax issues caused by xjoao. --- src/main/java/com/eu/habbo/habbohotel/games/Game.java | 2 +- .../com/eu/habbo/habbohotel/guilds/forums/ForumThread.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/games/Game.java b/src/main/java/com/eu/habbo/habbohotel/games/Game.java index 6bff094a..f8aa6c37 100644 --- a/src/main/java/com/eu/habbo/habbohotel/games/Game.java +++ b/src/main/java/com/eu/habbo/habbohotel/games/Game.java @@ -74,7 +74,7 @@ public abstract class Game implements Runnable { habbo.getClient().sendResponse(new GuideSessionPartnerIsPlayingComposer(true)); return true; } - } catch (NoSuchMethodException | SecurityException e) { + } catch (Exception e) { LOGGER.error("Caught exception", e); } diff --git a/src/main/java/com/eu/habbo/habbohotel/guilds/forums/ForumThread.java b/src/main/java/com/eu/habbo/habbohotel/guilds/forums/ForumThread.java index eff68a99..f4325c0d 100644 --- a/src/main/java/com/eu/habbo/habbohotel/guilds/forums/ForumThread.java +++ b/src/main/java/com/eu/habbo/habbohotel/guilds/forums/ForumThread.java @@ -73,7 +73,8 @@ public class ForumThread implements Runnable, ISerialize { try { this.lastComment = ForumThreadComment.getById(set.getInt("last_comment_id")); - } catch (SQLException e)) { + } catch (SQLException e) { + LOGGER.error("ForumThread last_comment_id exception", e); } this.comments = new THashMap<>();