[Rt-commit] r13387 - rt/3.8/trunk/lib/RT/Graph

ruz at bestpractical.com ruz at bestpractical.com
Wed Jun 18 12:18:59 EDT 2008


Author: ruz
Date: Wed Jun 18 12:18:58 2008
New Revision: 13387

Modified:
   rt/3.8/trunk/lib/RT/Graph/Tickets.pm

Log:
* link->{Target|Base}Obj may return undef if link is not local object.

Modified: rt/3.8/trunk/lib/RT/Graph/Tickets.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Graph/Tickets.pm	(original)
+++ rt/3.8/trunk/lib/RT/Graph/Tickets.pm	Wed Jun 18 12:18:58 2008
@@ -313,10 +313,10 @@
             next if $args{'SeenEdge'}{ $link->id }++;
 
             my $target = $link->TargetObj;
-            next unless $target->isa('RT::Ticket');
+            next unless $target && $target->isa('RT::Ticket');
 
             my $base = $link->BaseObj;
-            next unless $target->isa('RT::Ticket');
+            next unless $base && $base->isa('RT::Ticket');
 
             my $next = $target->id == $args{'Ticket'}->id? $base : $target;
 


More information about the Rt-commit mailing list