From 884cb30ebdf07639e5fe8e392e35b767bb65c6b1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 5 Jan 2025 09:26:42 -0600 Subject: [PATCH] trade bug --- src/engine/db/handlers/dbItemHandler.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 130614f4..7f6e8532 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -134,9 +134,13 @@ public class dbItemHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery(); - if (rs.next()) - worked = rs.getBoolean("result"); - + if (rs.next()) { + try { + worked = rs.getBoolean("result"); + }catch(Exception e){ + worked = false; + } + } } catch (SQLException e) { Logger.error(e); }