bug class fixed involving rs usage
This commit is contained in:
@@ -63,6 +63,7 @@ public class dbMobHandler extends dbHandlerBase {
|
||||
if (objectUUID > 0)
|
||||
mobile = GET_MOB(objectUUID);
|
||||
}
|
||||
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
@@ -238,7 +239,9 @@ public class dbMobHandler extends dbHandlerBase {
|
||||
preparedStatement.setString(3, String.valueOf(new_value));
|
||||
|
||||
ResultSet rs = preparedStatement.executeQuery();
|
||||
result = rs.getString("result");
|
||||
|
||||
if (rs.next())
|
||||
result = rs.getString("result");
|
||||
|
||||
} catch (SQLException e) {
|
||||
Logger.error(e);
|
||||
|
||||
Reference in New Issue
Block a user