diff --git a/lib/Brass/Config/Pwd.pm b/lib/Brass/Config/Pwd.pm index ee7dcd2..f39d9c3 100644 --- a/lib/Brass/Config/Pwd.pm +++ b/lib/Brass/Config/Pwd.pm @@ -266,6 +266,7 @@ has servertypes => ( sub _build_servertypes { my $self = shift; + return [] if !$self->_rset; [map $_->servertype_id, $self->_rset->pw_servertypes]; }