Skip to content

Commit 71533cb

Browse files
committedOct 16, 2011
Make getPrototypeList catch exceptions.
1 parent e5d4664 commit 71533cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/WebGUI/Asset.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -1604,8 +1604,8 @@ sub getPrototypeList {
16041604
my $userUiLevel = $session->user->get('uiLevel');
16051605
my @assets;
16061606
ID: foreach my $id (@prototypeIds) {
1607-
my $asset = WebGUI::Asset->newById($session, $id);
1608-
next ID unless defined $asset;
1607+
my $asset = eval { WebGUI::Asset->newById($session, $id); };
1608+
next ID if Exception::Class->caught();
16091609
next ID unless $asset->get('isPrototype');
16101610
next ID unless ($asset->get('status') eq 'approved' || $asset->get('tagId') eq $session->scratch->get("versionTag"));
16111611
push @assets, $asset;

0 commit comments

Comments
 (0)
Please sign in to comment.