Small tweak for rejecting empty string as assetId.
This commit is contained in:
parent
56eadab746
commit
28fae98edd
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ around BUILDARGS => sub {
|
|||
my $assetId = shift;
|
||||
my $revisionDate = shift;
|
||||
|
||||
unless (defined $assetId) {
|
||||
unless ($assetId) {
|
||||
$session->errorHandler->error("Asset constructor new() requires an assetId.");
|
||||
return undef;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue