Added a null reference check
This commit is contained in:
1 parent
43dffa55cb
commit
8afa945327
1 file changed
+1
@@ -198,6 +198,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
using (ItemInfo itm = ItemInfo.Get(itemId))
|
||||
{
|
||||
if (itm == null) return null;
|
||||
if (itm.IsProcedure) return ProcedureInfo.Get(itemId);
|
||||
if (itm.IsSection) return SectionInfo.Get(itemId);
|
||||
if (itm.IsStep) return StepInfo.Get(itemId);
|
||||
|
||||
Reference in new issue
Block a user