From: Rafael Kitover Date: Fri, 4 Mar 2011 09:07:56 +0000 (-0500) Subject: initialize result_component_map to empty hash if unset X-Git-Tag: 0.07010^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Ftags%2F0.07010;p=dbsrgits%2FDBIx-Class-Schema-Loader.git initialize result_component_map to empty hash if unset --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 0a854ae..6eaaddc 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -621,6 +621,9 @@ sub new { } $self->result_component_map(\%rc_map); } + else { + $self->result_component_map({}); + } $self->_validate_result_component_map; if ($self->use_moose) {