X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=ba488df0e3a34bdd15f837e22e92fb483c940b63;hp=349574975e230221c0227604abcef28461dd5536;hb=46c5cdc88d59eaaebbde6e2dfce84bebafd9fda7;hpb=f4fba3d7cf527e80b293f46c1830f77e557bf6d2 diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 3495749..ba488df 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -235,7 +235,8 @@ sub recurse_match { } # Default args is blank, not 0, since Args() - my $args_attr = $action->attributes->{Args}->[0] || ''; + my $args_attr = $action->attributes->{Args}->[0]; + $args_attr = '' unless defined $args_attr; # No best action currently # OR This one matches with fewer parts left than the current best action,