X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=4d0031644e6c03320b08b1c5c332fa6520ae84e0;hb=90de76e8f1edec25c40e4a8666b0b67d14c488e8;hp=e310bd899bf89c8f9e588f11433754227d5eef8a;hpb=6e3f9d973268bf6e117dcb0a5d775de61e22c418;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e310bd8..4d00316 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -428,6 +428,10 @@ with localized C<< $c->action >> and C<< $c->namespace >>. Like C, C escapes the processing of the current request chain on completion, and does not return to its caller. +@arguments are arguments to the final destination of $action. @captures are +arguments to the intermediate steps, if any, on the way to the final sub of +$action. + =cut sub go { my $c = shift; $c->dispatcher->go( $c, @_ ) } @@ -1701,7 +1705,7 @@ sub _stats_start_execute { my $parent = $c->stack->[-1]; # forward, locate the caller - if ( exists $c->counter->{"$parent"} ) { + if ( defined $parent && exists $c->counter->{"$parent"} ) { $c->stats->profile( begin => $action, parent => "$parent" . $c->counter->{"$parent"},