EnforceProtectionAsync for DocumentEditor throws NullReferenceException

Hello,

I load a document in the DocumentEditor from a database (using sfdt-format) and I want to allow the user only to fill the form fields. So I used the following statement from the documentation, but a NullReferenceException is thrown:

await _container.DocumentEditor.Editor.EnforceProtectionAsync("abc", ProtectionType.FormFieldsOnly);

Can anyone help me?


3 Replies

SI Suresh Iyappan Syncfusion Team September 10, 2024 05:07 PM UTC

Hi Max Lock,


We have tried to replicate the issue in our latest version ( v26.2.14 ) and in that we could not find any NullReferenceException on using EnforceProtectionAsync API. We request you to upgrade to the latest version ( v26.2.14 ) and try on your end. 


If the issue still arises in the latest version, it will be more helpful for us if you can share the issue reproducing sample so that we can validate it further and provide with the necessary solution. 

Regards,
Suresh I



ML Max Lock September 17, 2024 01:41 PM UTC



SI Suresh Iyappan Syncfusion Team September 18, 2024 12:58 PM UTC

Hi Max Lock,


Thanks for the follow up. You can track the status of the fix through the feedback link. 


Regards,
Suresh I


Loader.
Up arrow icon