Object reference not set (and bug tracker proxy settings dont work for us)

Your proxy settings code doesnt work so can never submit bugs directly... it always says credentials incorrect when I know for sure they are (just perhaps not what your bug tracker is expecting though).

Had a private bool ShouldSerializeFoo() method in a class. Decided to try proposed workaround by IIya of adding an attribute to get the code to not show up as unused. Started typing above the word private and got as far as "[Te" and then got this crash:

JetBrains.Util.InternalErrorException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.b__0(ITreeNode treeNode) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActions\ChangeModifierAction.cs:line 82 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 338 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 299 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 295 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 295 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 295 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNodeInternal(ITreeNode lastFound, TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\CompositeElement.cs:line 342 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNode(TreeNodePredicate predicate) in c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 309 at JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.FindModifiersListNode(IList`1& allNodes) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActions\ChangeModifierAction.cs:line 79 at JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.IsAvailableInternal() in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActions\ChangeModifierAction.cs:line 130 at JetBrains.ReSharper.Daemon.CSharp.ContextActions.Util.CSharpContextActionBase.IsAvailable(IUserDataHolder cache) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActions\Util\CSharpContextActionBase.cs:line 30 at JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.IsAvailable(IUserDataHolder cache) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActions\ChangeModifierAction.cs:line 40 at JetBrains.ReSharper.Daemon.Impl.ContextActionTableImpl.Actions(ISolution solution, ITextControl control, IUserDataHolder cache) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\ContextActionTableImpl.cs:line 99 at JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.<>c__DisplayClasse.b__9() in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerImpl.cs:line 269 at JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.<>c__DisplayClasse.]]>b__b(CheckForInterrupt checkForInterrupt) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerImpl.cs:line 285
at JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.BackgroundContextActionBuilder.Work(CheckForInterrupt d) in c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerImpl.cs:line 316
at JetBrains.Shell.InterruptableReadActivity.DoWork() in c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\InterruptableReadActivity.cs:line 188
at JetBrains.Shell.InterruptableReadActivity.WorkerThreadProc() in c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\InterruptableReadActivity.cs:line 76
--- End of inner exception stack trace ---

at JetBrains.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 263 column 4
at JetBrains.Util.Logger.LogException(Exception) in c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 273 column 3
at JetBrains.Shell.InterruptableReadActivity.WorkerThreadProc() in c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\InterruptableReadActivity.cs:line 114 column 9
at System.Threading.ThreadHelper.ThreadStart_Context(Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Threading.ThreadHelper.ThreadStart()

1 comment
Comment actions Permalink

Hello Grant,

Thank you for your feedback. This exception was already reported and should
be fixed in the last nightly build.

Your proxy settings code doesnt work so can never submit bugs
directly... it always says credentials incorrect when I know for sure
they are (just perhaps not what your bug tracker is expecting though).

Had a private bool ShouldSerializeFoo() method in a class. Decided to
try proposed workaround by IIya of adding an attribute to get the code
to not show up as unused. Started typing above the word private and
got as far as "[Te" and then got this crash:

JetBrains.Util.InternalErrorException: Object reference not set to an
instance of an object. ---> System.NullReferenceException: Object
reference not set to an instance of an object.
at
JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.
<FindModifiersListNode>b__0(ITreeNode treeNode) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActi
ons\ChangeModifierAction.cs:line 82
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 338
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInt
ernal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Tr
eeElement.cs:line 299
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInt
ernal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Tr
eeElement.cs:line 295
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInt
ernal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Tr
eeElement.cs:line 295
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNodeInt
ernal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Tr
eeElement.cs:line 295
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNextNo
deInternal(ITreeNode lastFound, TreeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Co
mpositeElement.cs:line 342
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.FindNextNode(Tr
eeNodePredicate predicate) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Psi\src\ExtensionsAPI\Tree\Tr
eeElement.cs:line 309
at
JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.
FindModifiersListNode(IList`1& allNodes) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActi
ons\ChangeModifierAction.cs:line 79
at
JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.
IsAvailableInternal() in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActi
ons\ChangeModifierAction.cs:line 130
at
JetBrains.ReSharper.Daemon.CSharp.ContextActions.Util.CSharpContextAct
ionBase.IsAvailable(IUserDataHolder cache) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActi
ons\Util\CSharpContextActionBase.cs:line 30
at
JetBrains.ReSharper.Daemon.CSharp.ContextActions.ChangeModifierAction.
IsAvailable(IUserDataHolder cache) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon.CSharp\src\ContextActi
ons\ChangeModifierAction.cs:line 40
at
JetBrains.ReSharper.Daemon.Impl.ContextActionTableImpl.Actions(ISoluti
on solution, ITextControl control, IUserDataHolder cache) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\ContextAction
TableImpl.cs:line 99
at
JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.<>c__DisplayClasse.<As
yncBuildAvailableActionsList>b__9() in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerIm
pl.cs:line 269
at
JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.<>c__DisplayClasse.<As
yncBuildAvailableActionsList>b__b(CheckForInterrupt checkForInterrupt)
in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerIm
pl.cs:line 285
at
JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.BackgroundContextActio
nBuilder.Work(CheckForInterrupt d) in
c:\Agent\work\Server\ReSharper-3.0.2\src\Daemon\src\Impl\BulbManagerIm
pl.cs:line 316
at JetBrains.Shell.InterruptableReadActivity.DoWork() in
c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\
InterruptableReadActivity.cs:line 188
at JetBrains.Shell.InterruptableReadActivity.WorkerThreadProc() in
c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\
InterruptableReadActivity.cs:line 76
--- End of inner exception stack trace ---
at JetBrains.Util.Logger.LogExceptionEx(Exception, String, Boolean)
in
c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Util\src\L
ogger\Logger.cs:line 263 column 4
at JetBrains.Util.Logger.LogException(Exception) in
c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Util\src\L
ogger\Logger.cs:line 273 column 3
at JetBrains.Shell.InterruptableReadActivity.WorkerThreadProc() in
c:\Agent\work\Server\ReSharper-3.0.2\Platform\src\JetBrains.Shell\src\
InterruptableReadActivity.cs:line 114 column 9
at System.Threading.ThreadHelper.ThreadStart_Context(Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback, Object)
at System.Threading.ThreadHelper.ThreadStart()

Best regards,
Andrey Simanovsky


0

Please sign in to leave a comment.