B2023-066: Crash when selecting a step that has an annotation where the annotation type has been removed.
This commit is contained in:
parent
65ec267c7a
commit
7311afded0
@ -262,7 +262,8 @@ namespace Volian.Controls.Library
|
|||||||
if (tn == null)
|
if (tn == null)
|
||||||
{
|
{
|
||||||
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
||||||
tn = annotationDeleted.Nodes.Add(ati.Name);
|
// B2023-066: Crash when trying to access a deleted annotation type (added the ati==null check)
|
||||||
|
tn = annotationDeleted.Nodes.Add(ati==null?"Deleted Annotation Type":ati.Name);
|
||||||
}
|
}
|
||||||
TreeNode cn = tn.Nodes.Add(aai.ListString());
|
TreeNode cn = tn.Nodes.Add(aai.ListString());
|
||||||
cn.Tag = aai;
|
cn.Tag = aai;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user