modery / PowerDocu

Generate technical documentation from your existing Power Automate Flows and Power Apps canvas apps
MIT License
440 stars 73 forks source link

fix null reference access in addDetailedAppControls #63

Closed withmorten closed 1 year ago

withmorten commented 1 year ago

Just used this program to run over a solution, and it threw an exception in this specific line: o.Screen() returned null.

By swapping where the Equals is called upon this exception no longer triggers and the program seems to run fine.

However since I don't know the architecture of this program, there could be a better fix, or this fix could have even more unintended side effects ... if there is, please let me know!

modery commented 1 year ago

That's an interesting issue - seems like you have a control somewhere that is not on any screen - but it also isn't the app itself or the screen itself. The fix looks good, thanks for this!