better error handling
This commit is contained in:
parent
969a633d25
commit
ec5d2e3232
1 changed files with 4 additions and 1 deletions
|
|
@ -147,7 +147,10 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
try
|
||||
{
|
||||
assetStream = streamTask.Result;
|
||||
imageBuffer = ImageIO.LoadImage(assetStream);
|
||||
if (assetStream != null)
|
||||
{
|
||||
imageBuffer = ImageIO.LoadImage(assetStream);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue