silverstripe/silverstripe-cms — comment on commit 1914f0b29dfdd965fcd863dfb56e00e45e681be6
File:  line 0
By wolfv:

Does not do the job... Breaks.
Maybe this?
if(SiteTree::get_by_link($defaultParent)) {
$id = $defaultParent ? SiteTree::get_by_link($defaultParent)->ID : null;
$defaultParent = $id ? SiteTree::get_by_link($obj->defaultParent())->ID : null;
}