[Bps-public-commit] r19847 - Net-Google-Code/trunk/lib/Net/Google/Code/Role

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jun 2 22:16:46 EDT 2009


Author: sunnavy
Date: Tue Jun  2 22:16:46 2009
New Revision: 19847

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Role/Pageable.pm

Log:
there maybe empty issue list

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Role/Pageable.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Role/Pageable.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Role/Pageable.pm	Tue Jun  2 22:16:46 2009
@@ -52,6 +52,7 @@
     my @rows;
 
     my $pagination = $tree->look_down( class => 'pagination' );
+    return unless $pagination;
     if ( my ( $start, $end, $total ) =
         $pagination->as_text =~ /(\d+)\s+-\s+(\d+)\s+of\s+(\d+)/ )
     {



More information about the Bps-public-commit mailing list