Guard for null
- Issue MatterHackers/MCCentral#2499 Repair expected CloudLibrary behavior
This commit is contained in:
parent
511401665f
commit
04bb036120
1 changed files with 5 additions and 6 deletions
|
|
@ -354,14 +354,13 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
{
|
||||
// Container items
|
||||
var container = await containerLink.GetContainer(null);
|
||||
|
||||
await Task.Run(() =>
|
||||
{
|
||||
container.Load();
|
||||
});
|
||||
|
||||
if (container != null)
|
||||
{
|
||||
await Task.Run(() =>
|
||||
{
|
||||
container.Load();
|
||||
});
|
||||
|
||||
container.Parent = ActiveContainer;
|
||||
SetActiveContainer(container);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue