Only switch to container if not null

This commit is contained in:
John Lewin 2017-05-20 22:52:30 -07:00
parent ab161a949e
commit 1787c377eb
2 changed files with 6 additions and 4 deletions

View file

@ -285,9 +285,11 @@ if (hasID
if (containerLink != null)
{
var container = await containerLink.GetContainer(null);
container.Parent = ActiveContainer;
LoadContainer(container);
if (container != null)
{
container.Parent = ActiveContainer;
LoadContainer(container);
}
}
}
else