System.NullReferenceException

Hi,

I use SfSkinManager wit .Net 6.0 and Nuget.

In my application are many Windows and i use:

SfSkinManager.ApplyStylesOnApplication = true;

Starting with Syncfusion 19.3.0.54 I get an System.NullReferenceException in my application.

The same application with 19.3.0.53 works fine.

Here the error message:

System.NullReferenceException

  HResult=0x80004003

  Nachricht = Object reference not set to an instance of an object.

  Quelle = Syncfusion.SfSkinManager.WPF

  Stapelüberwachung:

   bei Syncfusion.SfSkinManager.SfSkinManager.ApplyWindowStyle(Window window, String style, Theme themeinfo)

   bei Syncfusion.SfSkinManager.SfSkinManager.ChangeVisualStyle(FrameworkElement felement, String visualstyle, Theme themeinfo)

   bei Syncfusion.SfSkinManager.SfSkinManager.OnThemeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)

   bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei Syncfusion.Windows.Tools.Controls.RibbonWindow.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

   bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

   bei Syncfusion.SfSkinManager.SfSkinManager.SetTheme(DependencyObject obj, Theme value)

   bei Syncfusion.SfSkinManager.SfSkinManager.OnVisualStyleChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)

   bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei Syncfusion.Windows.Tools.Controls.RibbonWindow.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

   bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

   bei System.Windows.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value)

   bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)

   bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

   bei System.Xaml.XamlObjectWriter.SetValue(Object inst, XamlMember property, Object value)

   bei System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)

   bei System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)

   bei System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)

   bei System.Xaml.XamlObjectWriter.WriteEndMember()

   bei System.Xaml.XamlWriter.WriteNode(XamlReader reader)

   bei System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)

   bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

   bei System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)

   bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

   bei System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   bei Test_Ribbon.Master.InitializeComponent() in C:\Users\joerg\OneDrive - CAMAC solutions GmbH\Dokumente - Teamwebsite der CAMAC solutions GmbH\CAMAC\Intern\Programmierung\Syncfusion\Test_Ribbon\Master.xaml: Zeile1


  Diese Ausnahme wurde ursprünglich von dieser Aufrufliste ausgelöst:

    [Externer Code]

You will find a test-application in appendix.

It starts with Window1, if you click on Login-Button, the Master-Window starts and the error occurs.

Have I to change something in my code or is there a bug?


Regards

Jörg



Attachment: Test_Ribbon_2d3586a8.7z

8 Replies

TB Thirupathi Bala Krishnan Syncfusion Team December 9, 2021 04:52 PM UTC

Hi Jörg, 

Thanks for contacting Syncfusion support. 

Currently we validated your reported query “After upgrading to 19.3.0.54, a null reference exception is thrown”. We need some more time to analyze the reported issue. So we’ll provide the further details on 10th December, 2021. We appreciate your patience until then. 

Regards,
Thirupathi B. 



EM Elakkiya Muthukumarasamy Syncfusion Team December 10, 2021 02:31 PM UTC

Hi Jörg, 
  
Thanks for your update. 
  
We have confirmed the reported scenario “While using multiple windows throws null exception in SkinManager” is a defect and logged a report for this. We’ll provide the patch file for the reported issue on December 17th , 2021. We appreciate your patience until then. 
 
Please follow the below feedback link for further details 
 
Please let us know if you need any further assistance.    
 
Regards, 
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team December 16, 2021 04:25 PM UTC

 
Hi Jörg, 
 
Due to complexities, still we are working this issue with high priority. So, we need some more time to fix this issue and we will update the fix without any further delay on or before 20th  December 2021. 
 
Regards, 
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team December 21, 2021 04:56 PM UTC

Hi Jörg
 
We have fixed the reported issue “While using multiple windows throws null exception in SkinManager” and the fix will be included in our upcoming weekly nuget release, and it’s expected to publish on 28th December 2021 .We will intimate you once its get published. Otherwise please share your assembly version details we will update you the patch details. 
  
Regards, 
Elakkiya 



TB Thirupathi Bala Krishnan Syncfusion Team December 28, 2021 11:40 AM UTC

Hi Jörg, 

We have fixed the reported issue but we need to confirm the possible automations on our end. As a result, we won't be able to include the code changes in the current weekly nuget release. The code changes will be included in our upcoming weekly nuget release which is scheduled for January 4, 2022. We’ll let you know once the changes has been published in nuget.org. We appreciate your patience until then.  

Regards,
Thirupathi B. 



TB Thirupathi Bala Krishnan Syncfusion Team January 4, 2022 01:41 PM UTC

Hi Jörg,   
   
The reported issue "While using multiple windows throws null exception in SkinManager" has been resolved, and the code changes have been included in our most recent weekly nuget version 19.4.0.41. The reported Nuget packages have been published on nuget.org. The packages can be downloaded from the following link.  
   
Nuget link: https://www.nuget.org/    
   
Please let us know if you need any further assistance.  
   
Regards,   
Thirupathi B. 



Jörg January 4, 2022 01:43 PM UTC

Hi Thirupathi,

thanks. I have installed the new Nuget Package in the Morning and it works fine, now.

Regards,

Jörg



TB Thirupathi Bala Krishnan Syncfusion Team January 4, 2022 01:54 PM UTC

Hi Jörg, 

Thanks for confirming that the reported issue has been resolved in the latest weekly nuget. Please let us know if you need any further assistance on this. As always, we are happy to assist you. 

Regards, 
Thirupathi B. 


Loader.
Up arrow icon