Object reference not set to an instance of an object.
Moderator: SourceGear
-
- Posts: 30
- Joined: Tue Aug 15, 2006 6:17 pm
Object reference not set to an instance of an object.
We'be start intermitantly getting NullReference type exceptions with the VSIP client in Visual Studio 2005. It seems to start happening when the VSIP client tries to "update" the status of all the files in the project. Unfortunately it seems to do it once for each file in the solution and on some of our big solutions it's faster to end-task on visual studio then it is to hit ok to all these messages. I've grabbed some info from the VSIP client log, hopefully this can shed some light on things as it's a very frustrating bug.
08/25/2008 2:27:07 PM <generic>: CI.Repository.Root was null
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:07 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)]Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
Stack Trace:
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:08 PM <generic>: CI.Repository.Root was null
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at Microsoft.VisualStudio.Shell.Interop.IVsSccProject2.SccGlyphChanged(Int32 cAffectedNodes, UInt32[] rgitemidAffectedNodes, VsStateIcon[] rgsiNewGlyphs, UInt32[] rgdwNewSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:08 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)]Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
Stack Trace:
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at Microsoft.VisualStudio.Shell.Interop.IVsSccProject2.SccGlyphChanged(Int32 cAffectedNodes, UInt32[] rgitemidAffectedNodes, VsStateIcon[] rgsiNewGlyphs, UInt32[] rgdwNewSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:07 PM <generic>: CI.Repository.Root was null
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:07 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)]Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
Stack Trace:
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:08 PM <generic>: CI.Repository.Root was null
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at Microsoft.VisualStudio.Shell.Interop.IVsSccProject2.SccGlyphChanged(Int32 cAffectedNodes, UInt32[] rgitemidAffectedNodes, VsStateIcon[] rgsiNewGlyphs, UInt32[] rgdwNewSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
08/25/2008 2:27:08 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)]Object reference not set to an instance of an object.
at SourceGearLLC.VaultVsipClient.Vault.IsFileControlledAndOnline(String filename, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
Stack Trace:
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e)
at SourceGearLLC.VaultVsipClient.Vault.GetFileStatus(String filename, WorkingFolderFileStatus& fileStatus, CheckoutStatus& checkoutStatus, VaultClientFile& file)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph_Implementation(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at SourceGearLLC.VaultVsipClient.SccProviderService.GetSccGlyph(Int32 cFiles, String[] rgpszFullPaths, VsStateIcon[] rgsiGlyphs, UInt32[] rgdwSccStatus)
at Microsoft.VisualStudio.Shell.Interop.IVsSccProject2.SccGlyphChanged(Int32 cAffectedNodes, UInt32[] rgitemidAffectedNodes, VsStateIcon[] rgsiNewGlyphs, UInt32[] rgdwNewSccStatus)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshNodesGlyphs(IList`1 selectedNodes)
at SourceGearLLC.VaultVsipClient.SolutionNodeManager.RefreshAllNodes()
at SourceGearLLC.VaultVsipClient.UIThreadTask.Run()
at SourceGearLLC.VaultVsipClient.UIThreadTask.DoTasks(UInt32 idleFlags)
at SourceGearLLC.VaultVsipClient.VaultVsipClient.FDoIdle(UInt32 grfidlef)
Re: Object reference not set to an instance of an object.
Can you close Visual Studio and open your Vault client. Do you have any problems checking out files, editing in notepad (small comment change), and checking the file back in?
Which version of Vault are you on?
Which version of Vault are you on?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
-
- Posts: 30
- Joined: Tue Aug 15, 2006 6:17 pm
Re: Object reference not set to an instance of an object.
I've never had a problem with the Vault Client. It's only inside the IDE that we have issues.
Versions are...
[08/25/2008 2:48:04 PM] Version Check: This Vault client is version 4.1.2.18185
[08/25/2008 2:48:04 PM] Version Check: Your Vault server is version 4.1.2.18185
Versions are...
[08/25/2008 2:48:04 PM] Version Check: This Vault client is version 4.1.2.18185
[08/25/2008 2:48:04 PM] Version Check: Your Vault server is version 4.1.2.18185
Re: Object reference not set to an instance of an object.
Do you have Vault open at the same time and/or multiple instances of VS open? If so, can you reproduce it with only having one VS session open and no Vault GUI client?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Object reference not set to an instance of an object.
This is a known issue that's been addressed for Vault 4.1.3, which is not yet released due to server-related testing.
You can download a pre-release version of the 4.1.3 client (which is compatible with any 4.1.x server) here: http://people.sourcegear.com/~ian/Vault ... _18273.msi
(For Fortress users, the Fortress client is here: http://people.sourcegear.com/~ian/Fortr ... _18273.msi).
You can download a pre-release version of the 4.1.3 client (which is compatible with any 4.1.x server) here: http://people.sourcegear.com/~ian/Vault ... _18273.msi
(For Fortress users, the Fortress client is here: http://people.sourcegear.com/~ian/Fortr ... _18273.msi).
Ian Olsen
SourceGear
SourceGear
-
- Posts: 30
- Joined: Tue Aug 15, 2006 6:17 pm
Re: Object reference not set to an instance of an object.
Thanks Ian - we'll give it a whirl.
Re: Object reference not set to an instance of an object.
Sorry for the inconvenience. Let us know if you have any other problems.
Ian Olsen
SourceGear
SourceGear