--- Webpacus/lib/Webpacus/Model/WebPAC.pm 2006/02/20 21:47:54 413 +++ Webpacus/lib/Webpacus/Model/WebPAC.pm 2006/02/20 21:48:47 414 @@ -239,6 +239,10 @@ $cond->set_max( $page * $max ); my $result = $self->{est_node}->search($cond, $args->{depth}); + if (! $result) { + $self->{log}->fatal("search didn't return result"); + return; + } my $hits = $result->doc_num; $times->{est} += time() - $t;