Author: jflesch
Date: 2007-10-05 21:07:24 +0000 (Fri, 05 Oct 2007)
New Revision: 15432

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
Log:
Fix the option 'add specific key' in the index browser

Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java   
2007-10-05 17:08:00 UTC (rev 15431)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java   
2007-10-05 21:07:24 UTC (rev 15432)
@@ -1460,7 +1460,7 @@
                                                        alreadyThere = true;
                                        }

-                                       if (alreadyThere) {
+                                       if (!alreadyThere) {

                                                st.setInt(1, nextId);
                                                st.setString(2, 
FreenetURIHelper.getFilenameFromKey(key));

Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java   
2007-10-05 17:08:00 UTC (rev 15431)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKBoard.java   
2007-10-05 21:07:24 UTC (rev 15432)
@@ -833,6 +833,11 @@
                } catch(SQLException e) {
                        Logger.error(db, "Can't count the number of new message 
on the board "+
                                     "'"+boardName+"'because : "+e.toString());
+
+                       /* usually, this exception come from hsqldb itself (Out 
of Memory exception)
+                        * so a stack trace may be interresting here
+                        */
+                       e.printStackTrace();
                }

                return count;


Reply via email to