some bug fixes
This commit is contained in:
parent
e1fee84dc5
commit
15bb672c3c
8 changed files with 147 additions and 32 deletions
|
|
@ -83,6 +83,10 @@ sub getAssets {
|
|||
my @assets = ();
|
||||
while (my ($id, $class, $version) = $rs->array) {
|
||||
my $asset = WebGUI::Asset->new($self->session, $id, $class, $version);
|
||||
unless (defined $asset) {
|
||||
$self->session->errorHandler->warn("Search index contains assetId $id even though it no longer exists.");
|
||||
next;
|
||||
}
|
||||
push(@assets, $asset);
|
||||
}
|
||||
return \@assets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue