"Implement Members" form throws exception

(Again, I can't seem to post via ITN so here is my exception report)

Scenario: I added an interface to a class which allowed me to open the
"Implement members" form. I had two properties to implement so I checked
both properties in the default tree view. Then I checked "Sort
alphabetically" which cleared my checkboxes (they should be preserved I
think -- that's a separate issue). Then I immediately unchecked "Sort
alphabetically" to go back to the tree view, and then I tried to recheck my
two properties, which threw the error:

JetBrains.ReSharper.Util.InternalErrorException: An exception has
occurred ---> System.ArgumentNullException: Key cannot be null.
Parameter name: key
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean
add)
at System.Collections.Hashtable.set_Item(Object key, Object value)
at JetBrains.ReSharper.Util.HashSet.Add(Object o) in
c:\TEMP\tmpDE05.tmp\src\Util\src\dataStructures\HashSet.cs:line 51
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxes.CustomColumnContainerImpl.GetSelectedDescriptors(AbstractTreeBuilder
abstractTreeBuilder) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeViewWithBoxes.cs:line
217
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxes.get_SelectedDescriptors()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeViewWithBoxes.cs:line
93
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersControl.get_Selection()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersControl.cs:line
71
at
JetBrains.ReSharper.Daemon.CSharp.QuickFixes.ImplementMemberFix.ImplementsAndOverridesGenerator.ContinueEnabled(IGeneratePage
page) in
c:\TEMP\tmpDE05.tmp\src\Daemon.CSharp\src\QuickFixes\ImplementMemberFix.cs:line
190
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersPage.get_ContinueEnabled()
in c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersPage.cs:line
59
at
JetBrains.ReSharper.CodeInsight.Generate.GenerateWizardForm.OnPageContinueEnabledChanged(Object
sender, EventArgs e) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\GenerateWizardForm.cs:line
239
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersPage.FireContinueEnabledChanged()
in c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersPage.cs:line
66
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersControl.OnCheckedChanged(Object
sender, EventArgs e) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersControl.cs:line
173
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxes.SetTreeNodeCheckState(DevExpressTreeNode
node, CheckState state) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeViewWithBoxes.cs:line
139
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.TreeControlWithCheckBoxes.ToggleCheckedNode(DevExpressTreeNode
node) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\TreeControlWithCheckBoxes.cs:line
61
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.TreeControlWithCheckBoxes.OnMouseUp(MouseEventArgs
e) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\TreeControlWithCheckBoxes.cs:line
142
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.DevExpressTreeControl.WndProc(Message&
m) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\DevExpressTreeControl.cs:line
146
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in c:\TEMP\tmpDE05.tmp\src\Util\src\Logger.cs:line 297 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\TEMP\tmpDE05.tmp\src\Util\src\Logger.cs:line 309 column 5
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.DevExpressTreeControl.WndProc(Message&)
in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\DevExpressTreeControl.cs:line
150 column 9
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.SimpleTreeControl.WndProc(Message&)
in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\SimpleTreeControl.cs:line
134 column 5
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.WindowUtil.ShowDialog(Form, IWin32Window) in
c:\TEMP\tmpDE05.tmp\src\Shell\src\WindowUtil.cs:line 48 column 9
at
JetBrains.ReSharper.CodeInsight.Generate.c__DisplayClass2.]]>b__0()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\GenerateProcessor.cs:line
67 column 17
at JetBrains.ReSharper.Shell.PendingAction.Execute() in
c:\TEMP\tmpDE05.tmp\src\Shell\src\Invocator.cs:line 219 column 11
at JetBrains.ReSharper.Shell.Invocator.ProcessQueue() in
c:\TEMP\tmpDE05.tmp\src\Shell\src\Invocator.cs:line 163 column 11
at System.RuntimeMethodHandle._InvokeMethodFast(Object, Object[],
SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object, Object[], Signature,
MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback,
Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)


1 comment
Comment actions Permalink

Hello Blake,

Thank you for your feedback. The exception is fixed in build 216, which will
soon be published.

(Again, I can't seem to post via ITN so here is my exception report)

Scenario: I added an interface to a class which allowed me to open the
"Implement members" form. I had two properties to implement so I
checked both properties in the default tree view. Then I checked
"Sort alphabetically" which cleared my checkboxes (they should be
preserved I think -- that's a separate issue). Then I immediately
unchecked "Sort alphabetically" to go back to the tree view, and then
I tried to recheck my two properties, which threw the error:

JetBrains.ReSharper.Util.InternalErrorException: An exception has
occurred ---> System.ArgumentNullException: Key cannot be null.
Parameter name: key
at System.Collections.Hashtable.Insert(Object key, Object nvalue,
Boolean
add)
at System.Collections.Hashtable.set_Item(Object key, Object value)
at JetBrains.ReSharper.Util.HashSet.Add(Object o) in
c:\TEMP\tmpDE05.tmp\src\Util\src\dataStructures\HashSet.cs:line 51
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxe
s.CustomColumnContainerImpl.GetSelectedDescriptors(AbstractTreeBuilder
abstractTreeBuilder) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeView
WithBoxes.cs:line
217
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxe
s.get_SelectedDescriptors()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeView
WithBoxes.cs:line
93
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersControl.get_Selec
tion()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersControl.c
s:line
71
at
JetBrains.ReSharper.Daemon.CSharp.QuickFixes.ImplementMemberFix.Implem
entsAndOverridesGenerator.ContinueEnabled(IGeneratePage
page) in
c:\TEMP\tmpDE05.tmp\src\Daemon.CSharp\src\QuickFixes\ImplementMemberFi
x.cs:line
190
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersPage.get_Continue
Enabled()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersPage.cs:l
ine
59
at
JetBrains.ReSharper.CodeInsight.Generate.GenerateWizardForm.OnPageCont
inueEnabledChanged(Object
sender, EventArgs e) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\GenerateWizardForm.cs
:line
239
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersPage.FireContinue
EnabledChanged()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersPage.cs:l
ine
66
at
JetBrains.ReSharper.CodeInsight.Generate.Util.MembersControl.OnChecked
Changed(Object
sender, EventArgs e) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\MembersControl.c
s:line
173
at
JetBrains.ReSharper.CodeInsight.Generate.Util.GenerateTreeViewWithBoxe
s.SetTreeNodeCheckState(DevExpressTreeNode
node, CheckState state) in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\Util\GenerateTreeView
WithBoxes.cs:line
139
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.TreeControlW
ithCheckBoxes.ToggleCheckedNode(DevExpressTreeNode
node) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\
TreeControlWithCheckBoxes.cs:line
61
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.TreeControlW
ithCheckBoxes.OnMouseUp(MouseEventArgs
e) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\
TreeControlWithCheckBoxes.cs:line
142
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at
DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.DevExpressTr
eeControl.WndProc(Message&
m) in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\
DevExpressTreeControl.cs:line
146
--- End of inner exception stack trace ---
at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in c:\TEMP\tmpDE05.tmp\src\Util\src\Logger.cs:line 297 column
9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\TEMP\tmpDE05.tmp\src\Util\src\Logger.cs:line 309 column 5
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.DevExpressTr
eeControl.WndProc(Message&)
in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\
DevExpressTreeControl.cs:line
150 column 9
at
JetBrains.ReSharper.UI.AbstractTreeBuilder.DevExpressTree.SimpleTreeCo
ntrol.WndProc(Message&)
in
c:\TEMP\tmpDE05.tmp\src\AbstractTreeBuilder\src\DevExpressTreeBuilder\
SimpleTreeControl.cs:line
134 column 5
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.WindowUtil.ShowDialog(Form,
IWin32Window) in
c:\TEMP\tmpDE05.tmp\src\Shell\src\WindowUtil.cs:line 48 column 9
at
JetBrains.ReSharper.CodeInsight.Generate.<>c__DisplayClass2.<Execute>b
__0()
in
c:\TEMP\tmpDE05.tmp\src\CodeInsight\src\Generate\GenerateProcessor.cs:
line
67 column 17
at JetBrains.ReSharper.Shell.PendingAction.Execute() in
c:\TEMP\tmpDE05.tmp\src\Shell\src\Invocator.cs:line 219 column 11
at JetBrains.ReSharper.Shell.Invocator.ProcessQueue() in
c:\TEMP\tmpDE05.tmp\src\Shell\src\Invocator.cs:line 163 column 11
at System.RuntimeMethodHandle._InvokeMethodFast(Object, Object[],
SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object, Object[],
Signature,
MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags,
Binder,
Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt
ry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
edCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback,
Object)
at
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)

Thanks,
Andrey Simanovsky


0

Please sign in to leave a comment.