Missing dependencies throw exception when clicking Document menu

Hey there,

This on 5.3-222.

If a VL document has missing depdendencies, clicking the Document menu throws this exception in the Console window :

NullReferenceException: "Object reference not set to an instance of an object."
    StackTrace:
        VL.HDE.PatchEditor.NavigationMenuProvider+<>c { internal bool <AddNETNugetEntries>b__62_0(VL.Model.NugetDependency n) { ... } } 
        System.Linq.Enumerable+WhereEnumerableIterator`1 { public virtual TSource[] ToArray() { ... } } 
        VL.HDE.PatchEditor.NavigationMenuProvider { private void AddNETNugetEntries(VL.Lang.Menu.MenuEntry menuEntry) { ... } } 
        VL.Lang.Menu.MenuEntry { public virtual System.Collections.Generic.IEnumerable<VL.Lang.Menu.IMenuEntry> get_Entries() { ... } } 
        VL.HDE.PatchEditor.NavigationMenuControl { private System.Windows.Forms.ToolStripItem CreateMenuItem(VL.Lang.Menu.IMenuEntry menuEntry) { ... } } 
        System.Linq.Enumerable+WhereSelectListIterator`2 { public virtual TResult[] ToArray() { ... } } 
        VL.HDE.PatchEditor.NavigationMenuControl { private void HandleMenuDropDownOpening(object sender, System.EventArgs e) { ... } } 
        System.Windows.Forms.ToolStripDropDownItem { protected virtual void OnDropDownShow(System.EventArgs e) { ... } } 
        System.Windows.Forms.ToolStripMenuItem { protected virtual void OnDropDownShow(System.EventArgs e) { ... } } 
        System.Windows.Forms.ToolStripDropDownItem { private void ShowDropDownInternal() { ... } } 
        System.Windows.Forms.MenuTimer { private void OnTick(object sender, System.EventArgs e) { ... } } 
        System.Windows.Forms.Timer+TimerNativeWindow { protected virtual void WndProc(System.Windows.Forms.Message& m) { ... } } 
        System.Windows.Forms.NativeWindow { private System.IntPtr Callback(System.IntPtr hWnd, Interop.User32.WM msg, System.IntPtr wparam, System.IntPtr lparam) { ... } } 

After the Exception has popped, the menu can still be accessed and the dependency can be installed though.

Thanks!

1 Like

Also present in 5.3-214

Thanks guys. Fixed in upcoming.

1 Like