From 899d6cd95ab325ce3df007bfde7e110dbcfb8148 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Fri, 31 Jan 2020 19:00:44 +0200 Subject: [PATCH] Add better error logging to catalog manager --- .../java/com/eu/habbo/habbohotel/catalog/CatalogManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java index 68db8eea..009b0828 100644 --- a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java @@ -40,6 +40,7 @@ import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.procedure.TObjectProcedure; import gnu.trove.set.hash.THashSet; +import java.lang.reflect.InvocationTargetException; import java.sql.*; import java.util.*; import java.util.stream.Collectors; @@ -729,6 +730,8 @@ public class CatalogManager { if (pageClazz != null) { try { catalogPage = pageClazz.getConstructor(ResultSet.class).newInstance(page); + } catch (InvocationTargetException e) { + Emulator.getLogging().logErrorLine(e.getCause()); } catch (Exception e) { Emulator.getLogging().logErrorLine(e); }