|
@@ -67,7 +67,11 @@ namespace Compdfkit_Tools.PDFControl
|
|
else
|
|
else
|
|
{
|
|
{
|
|
BaseAnnot baseAnnot= pdfViewer.PDFToolManager.GetCacheHitTestAnnot();
|
|
BaseAnnot baseAnnot= pdfViewer.PDFToolManager.GetCacheHitTestAnnot();
|
|
- AnnotationList.SelectAnnotationChanged(baseAnnot.GetAnnotData().PageIndex,baseAnnot.GetAnnotData().AnnotIndex);
|
|
|
|
|
|
+ AnnotData annotData = baseAnnot?.GetAnnotData();
|
|
|
|
+ if(annotData != null)
|
|
|
|
+ {
|
|
|
|
+ AnnotationList.SelectAnnotationChanged(annotData.PageIndex, annotData.AnnotIndex);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|