Compare commits

...

2 Commits

View File

@ -674,12 +674,15 @@ namespace Volian.Controls.Library
{ {
using (Annotation annotation = CurrentAnnotation.Get()) using (Annotation annotation = CurrentAnnotation.Get())
{ {
annotation.RtfText = rtxbComment.Rtf; if (annotation != null) // B2024-061 check for null reference
annotation.SearchText = rtxbComment.Text; {
annotation.MyAnnotationType = annotationType; annotation.RtfText = rtxbComment.Rtf;
annotation.DTS = DateTime.Now; annotation.SearchText = rtxbComment.Text;
annotation.UserID = Volian.Base.Library.VlnSettings.UserID; annotation.MyAnnotationType = annotationType;
annotation.Save(); annotation.DTS = DateTime.Now;
annotation.UserID = Volian.Base.Library.VlnSettings.UserID;
annotation.Save();
}
} }
} }
} }