MscrmTools / MsCrmTools.ScriptsFinder

List all client events defined in Dynamics CRM/365 organization
GNU General Public License v3.0
5 stars 3 forks source link

Object reference not set to an instance of an object. #23

Open mastasmooky-OT opened 10 months ago

mastasmooky-OT commented 10 months ago

Every time when i try to find script in entities i get following errer. It was working before but spot working on some moment

image

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at MsCrmTools.ScriptsFinder.ScriptsManager.LoadRibbonCommands(List1 emds) at MsCrmTools.ScriptsFinder.ScriptsManager.Find(List1 solutions, Boolean loadManagedEntities, Version crmVersion) at MsCrmTools.ScriptsFinder.ScriptsFinder.b__20_0(BackgroundWorker bw, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

MscrmTools commented 10 months ago

I guess you have something that changed in your Ribbon commands. I will review the code to find where a NullReferenceException could occur

MscrmTools commented 10 months ago

@mastasmooky-OT Can you test with this version?

MsCrmTools.ScriptsFinder.zip

mastasmooky-OT commented 10 months ago

@MscrmTools thanks for answer. You are right i have a lot of changes in Ribbon. I have tried it and got following error

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at MsCrmTools.ScriptsFinder.ScriptsManager.LoadRibbonCommands(List1 emds) at MsCrmTools.ScriptsFinder.ScriptsManager.Find(List1 solutions, Boolean loadManagedEntities, Version crmVersion) at MsCrmTools.ScriptsFinder.ScriptsFinder.b__20_0(BackgroundWorker bw, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

MscrmTools commented 10 months ago

@mastasmooky-OT so still the same error... crap... I don't see any other place where a NullReferenceException could occur in this LoadRibbonCommandsmethod

mastasmooky-OT commented 10 months ago

@MscrmTools is it possible to get information about what command is that and entity name so i can check what is special with this command

MscrmTools commented 10 months ago

@mastasmooky-OT This is a special version that will tell which command and show the command definition.

MsCrmTools.ScriptsFinder.zip

mastasmooky-OT commented 10 months ago

@MscrmTools actually it works fine without error (with library that you sent me in last post) :) But when i upgrade to latest version i'm getting error again ...

MscrmTools commented 10 months ago

I did not release publicly the fix. I will release it to see f it's ok after that