config might have been cleared (not sure if this should happen, though)
André Walker [Fri, 19 Aug 2011 05:34:34 +0000 (02:34 -0300)]
lib/Catalyst/IOC/ConstructorInjection.pm

index 781bf3b..72c551b 100644 (file)
@@ -41,7 +41,7 @@ sub get {
     warn("In get $component");
 
     my $params = $self->params;
-    my %config = (%{ $self->config }, %{ $params });
+    my %config = (%{ $self->config || {} }, %{ $params });
 #    warn(Data::Dumper::Dumper(\%config));
     $self->_clear_config;