B2024-061- Added a null reference check in the save annotation code. Need for when Admin deletes the annotation while a user modified the text of it #394
@ -673,6 +673,8 @@ namespace Volian.Controls.Library
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
using (Annotation annotation = CurrentAnnotation.Get())
|
using (Annotation annotation = CurrentAnnotation.Get())
|
||||||
|
{
|
||||||
|
if (annotation != null) // B2024-061 check for null reference
|
||||||
{
|
{
|
||||||
annotation.RtfText = rtxbComment.Rtf;
|
annotation.RtfText = rtxbComment.Rtf;
|
||||||
annotation.SearchText = rtxbComment.Text;
|
annotation.SearchText = rtxbComment.Text;
|
||||||
@ -683,6 +685,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
AnnotationDirty = false;
|
AnnotationDirty = false;
|
||||||
UpdateAnnotationGrid();
|
UpdateAnnotationGrid();
|
||||||
AnnotationTypeInfoList.Reset(); // B2018-135: refresh annotation type list to update when annotations are used.
|
AnnotationTypeInfoList.Reset(); // B2018-135: refresh annotation type list to update when annotations are used.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user