Apply |RABBIT|'s defined warning fix for ConfigLoader
[catagits/Catalyst-Plugin-ConfigLoader.git] / lib / Catalyst / Plugin / ConfigLoader.pm
index 0fcbc70..7761e96 100644 (file)
@@ -92,7 +92,7 @@ the file inside the app's home directory.
 sub finalize_config {\r
     my $c = shift;\r
     my $v = Data::Visitor::Callback->new(\r
-        plain_value => sub { s[^__HOME__/(.+)$][ $c->path_to($1) ]e }\r
+        plain_value => sub { s[^__HOME__/(.+)$][ $c->path_to($1) ]e if defined $_ }\r
     );\r
     $v->visit( $c->config );\r
 }\r
@@ -133,4 +133,4 @@ it under the same terms as Perl itself.
 \r
 =cut\r
 \r
-1;
\ No newline at end of file
+1;\r