small fix
[catagits/CatalystX-Declare.git] / lib / CatalystX / Declare / Action / CatchValidationError.pm
index d96421f..34e168e 100644 (file)
@@ -38,6 +38,8 @@ role CatalystX::Declare::Action::CatchValidationError {
 
             for my $key (@$named) {
 
+                next unless exists $ctx->request->params->{ $key };
+
                 my $value = $ctx->request->params->{ $key };
                 my $tc    = $tcs->{ $key };