There is a Dispatcher call without checking in the dispatcher call for NULL. This lead to NullReferenceException in huge production code. Available in R3 2016 SP
Reference to original discussion:
http://www.telerik.com/forums/raddropdownbutton-nullreferenceexception
Here ist he buggy code:
namespace Telerik.Windows.Controls
{
[TelerikToolboxCategory("Navigation")]
public class RadDropDownButton : RadButton, IPopupHost, IPopupWrapperOwner, IDisposable
{
private void OnLoaded(object sender, RoutedEventArgs e)
{
this.isLoaded = true;
RadDropDownButton isOpen = sender as RadDropDownButton;
if (isOpen != null && isOpen.popupWrapper != null)
{
// *************Missing IF in the dispatcher call for checking isOpen.popupWrapper again for null *************
base.Dispatcher.BeginInvoke(
() => isOpen.popupWrapper.IsOpen = this.IsOpen);
}
}
}
}