fix - lack of testing for valid object creation
This commit is contained in:
parent
63376067ff
commit
30a0cda342
2 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
- fix: Exporting fails with strange URLs. Also factored the URL to path/file
|
- fix: Exporting fails with strange URLs. Also factored the URL to path/file
|
||||||
translation out into a seperate method so it can be more easily maintained
|
translation out into a seperate method so it can be more easily maintained
|
||||||
and tested.
|
and tested.
|
||||||
|
- fix: lack of testing for valid object creation
|
||||||
|
|
||||||
7.3.8
|
7.3.8
|
||||||
- Fixed a template variable rewriting problem with HTML::Template::Expr
|
- Fixed a template variable rewriting problem with HTML::Template::Expr
|
||||||
|
|
|
||||||
|
|
@ -450,6 +450,10 @@ sub getLineage {
|
||||||
$asset = $self;
|
$asset = $self;
|
||||||
} else {
|
} else {
|
||||||
$asset = WebGUI::Asset->new($self->session,$id, $class, $version);
|
$asset = WebGUI::Asset->new($self->session,$id, $class, $version);
|
||||||
|
if (!defined $asset) { # won't catch everything, but it will help some if an asset blows up
|
||||||
|
$self->session->errorHandler->error("AssetLineage::getLineage - failed to instanciate asset with assetId $id, className $class, and revision $version");
|
||||||
|
next;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$asset = $id;
|
$asset = $id;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue