diff -r 5a4a41cfc0a3 -r 087ef6fe6a1a org/sonews/util/Stats.java --- a/org/sonews/util/Stats.java Thu Aug 20 21:31:03 2009 +0200 +++ b/org/sonews/util/Stats.java Wed May 12 11:18:02 2010 +0200 @@ -59,25 +59,26 @@ */ private void addEvent(byte type, String groupname) { - if(Config.inst().get(Config.EVENTLOG, true)) + try { - Channel group = Channel.getByName(groupname); - if(group != null) + if (Config.inst().get(Config.EVENTLOG, true)) { - try + + Channel group = Channel.getByName(groupname); + if (group != null) { StorageManager.current().addEvent( - System.currentTimeMillis(), type, group.getInternalID()); + System.currentTimeMillis(), type, group.getInternalID()); } - catch(StorageBackendException ex) - { - ex.printStackTrace(); - } - } + } else { Log.get().info("Group " + groupname + " does not exist."); } + } + catch (StorageBackendException ex) + { + ex.printStackTrace(); } }