Browse Source

PDFTool(Android) - 修复独立模块崩溃问题

liuxiaolong 8 months ago
parent
commit
c93b57123d

+ 1 - 1
ComPDFKit_Tools/src/main/java/com/compdfkit/tools/common/contextmenu/CPDFContextMenuHelper.java

@@ -89,7 +89,7 @@ public class CPDFContextMenuHelper extends CPDFContextMenuShowHelper {
 
     public CPDFContextMenuHelper(CPDFViewCtrl pdfView, ContextMenuProviderParams params) {
         super(pdfView.getCPdfReaderView());
-        if (pdfView.getCPDFConfiguration() != null && pdfView.getCPDFConfiguration().globalConfig != null){
+        if (pdfView.getCPDFConfiguration() != null && pdfView.getCPDFConfiguration().annotationsConfig != null){
             annotationAuthor = pdfView.getCPDFConfiguration().annotationsConfig.annotationAuthor;
         }
         this.helperParams = params;