Completed
Last Updated: 16 Mar 2021 12:12 by ADMIN
Release LIB 2021.1.322 (22/3/2021)
David
Created on: 19 Feb 2021 10:58
Category: RichTextBox
Type: Bug Report
0
RichTextBox: DocumentFormatProvidersManager.GetSupportedExtensions() throws NullReferenceException in .NET Core

The GetSupportedExtensions method of DocumentFormatProvidersManager throws NullReferenceException when invoked.

Workaround:

HashSet<string> supportedExtensions = new HashSet<string>();
foreach (var provider in DocumentFormatProvidersManager.FormatProviders)
{
    foreach (var extension in provider.SupportedExtensions)
    {
        supportedExtensions.Add(extension);
    }
}

 

0 comments