Completed
Last Updated: 17 May 2019 08:08 by ADMIN
Release LIB 2019.2.520 (05/20/2019)
Jared
Created on: 10 May 2019 18:54
Category: FileDialogs
Type: Bug Report
0
FileDialogs: Null reference in Telerik.Windows.Controls.FileDialogs.ExplorerControl.CanExecuteHelper(Object sender)

Hello.

I've created buttons that are bound to FileDialogCommands for sending commands to an ExplorerControl, as shown here:

https://docs.telerik.com/devtools/wpf/controls/radfiledialogs/features/commands

 

Everything works when the ExplorerControl is visible.  However, if the ExplorerControl's Visibility is set to Collapsed (which I need based on a condition), the Command bindings on the buttons throw the below error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.FileDialogs.ExplorerControl.CanExecuteHelper(Object sender)

 

The UserControl that hosts the ExplorerControl is being imported through MEF.  I don't know if that's a factor.

Either way, it looks like a null check might be needed for the InternalViewModel property.

1 comment
ADMIN
Petar Mladenov
Posted on: 14 May 2019 14:17
Hi Jared,

Thank you reporting this issue. We managed to reproduce it and a fix for it will be included in the first internal build after the release. The R2 release is scheduled for 15 May and the internal build will  be next week. We've updated your telerik account points.

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.