#584 fix for case where port has no corresponding properties row

This commit is contained in:
Oliver Gorwits
2019-05-27 13:39:54 +01:00
parent 416cffe52a
commit 902ab6c5f8

View File

@@ -219,7 +219,8 @@ Returns true if the C<$port> L<DBIx::Class> object has a phone connected.
=cut
sub port_has_phone {
return (shift)->properties->remote_is_phone;
my $properties = (shift)->properties;
return ($properties ? $properties->remote_is_phone : undef);
}
1;