From aa8bbd445fabd1cd7573f545ccb0837a9f21fd52 Mon Sep 17 00:00:00 2001 From: Andy Beverley Date: Sat, 7 Sep 2024 20:36:25 +0100 Subject: [PATCH] Fix creating new password --- lib/Brass/Config/Pwd.pm | 1 + 1 file changed, 1 insertion(+) 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]; }