From: Rafael Kitover Date: Tue, 13 Apr 2010 06:52:36 +0000 (-0400) Subject: don't croak if no components when filtering column accessors X-Git-Tag: 0.07000~68 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=410e3f58bc2bed7cb1e8af144ded5b46f4ccc4d7;p=dbsrgits%2FDBIx-Class-Schema-Loader.git don't croak if no components when filtering column accessors --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index f69f0ca..c9dd108 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -1401,7 +1401,7 @@ sub _resolve_col_accessor_collisions { my ($self, $col_info) = @_; my $base = $self->result_base_class || 'DBIx::Class::Core'; - my @components = map "DBIx::Class::$_", @{ $self->components }; + my @components = map "DBIx::Class::$_", @{ $self->components || [] }; my @methods;