Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better error handling

  • Loading branch information...
commit 0ec56501709ea4b0ca10cb2a6d6dec0cbdea6c5d 1 parent c48d860
Eliot Horowitz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/xgen/irc/RoomLogging.java
4 src/main/xgen/irc/RoomLogging.java
View
@@ -125,6 +125,10 @@ int _getBucketNumber( String room ) {
DBObject res = _db.command( cmd );
List results = (List)res.get( "results" );
+ if ( results == null ) {
+ LOG.log( Level.WARNING , "can't do fts query: " + res );
+ return lst;
+ }
for ( Object raw : results ) {
DBObject scored = (DBObject)raw;
DBObject bucket = (DBObject)scored.get( "obj" );
Please sign in to comment.
Something went wrong with that request. Please try again.