diff -r 5a4a41cfc0a3 -r f9bf183447d1 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 Sun Aug 29 17:03:21 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(); } }