# Object reference not set to an instance of object?

**URL:** <https://tech-community.robotics.abb.com/t/object-reference-not-set-to-an-instance-of-object/5576>\
**Category:** RobotStudio\
**Created:** [June 26, 2013, 6:10am UTC](https://tech-community.robotics.abb.com/t/object-reference-not-set-to-an-instance-of-object/5576 "2013-06-26T06:10:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clux](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@clux](https://tech-community.robotics.abb.com/u/clux)\
**Post date:** [June 26, 2013, 6:10am UTC](https://tech-community.robotics.abb.com/t/object-reference-not-set-to-an-instance-of-object/5576/1 "2013-06-26T06:10:49Z")

</div>

Experienced the error “Object reference not set to an instance of object” when trying to load a station I had saved earlier in the day. Can no longer open file. Any ideas?

Pop up window reads: “An unhandled excepetion has occured, program is now in an undefined state…”

Log file:

====== RobotStudio Log File ======  
Command Line : “C:\Program Files (x86)\ABB Industrial IT\Robotics IT\RobotStudio 5.14\Bin\RobotStudio.exe”  
App Version : 5.14.4771.3070  
API Version : 5.14.4771.3070  
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1  
CLR Version : 4.0.30319.296  
CPU Count : 4  
Physical Memory: 8148 MB

====== Error Log Begin ======  
14:24:11.258 (1): Thread STARTS (MainThread)  
14:24:12.007 (1): FeatureLevel: Full  
14:35:30.750 (1): Executing Command FileOpenStation  
14:35:30.797 (10): Thread STARTS (CLgRobServerCommandQueueThread)  
14:35:31.670 (1): Renderer: Direct3D  
14:35:31.889 (1): Executing Command FileOpenStation  
\*\*\* Error Message \*\*\*  
14:36:24.494 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1261 MB, peak 1261 MB  
Private bytes: current 1258 MB  
Available : virtual 2293 MB, physical 4397 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.494 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1261 MB, peak 1261 MB  
Private bytes: current 1258 MB  
Available : virtual 2293 MB, physical 4396 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.494 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1261 MB, peak 1261 MB  
Private bytes: current 1259 MB  
Available : virtual 2293 MB, physical 4396 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.494 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1261 MB, peak 1261 MB  
Private bytes: current 1259 MB  
Available : virtual 2293 MB, physical 4396 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.494 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1261 MB, peak 1261 MB  
Private bytes: current 1259 MB  
Available : virtual 2293 MB, physical 4396 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.510 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1262 MB, peak 1262 MB  
Private bytes: current 1260 MB  
Available : virtual 2293 MB, physical 4395 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.510 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1262 MB, peak 1262 MB  
Private bytes: current 1260 MB  
Available : virtual 2293 MB, physical 4395 MB  
Memory load : 46%  
====== Error Log End ======

====== Error Log Begin ======  
\*\*\* Error Message \*\*\*  
14:36:24.526 (1): PimDocument.ReadObjectData(): CmList contains null elem - (RoutineArgumentList) - Wash\_Dry.RoutineArguments

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1262 MB, peak 1262 MB  
Private bytes: current 1260 MB  
Available : virtual 2293 MB, physical 4395 MB  
Memory load : 46%  
====== Error Log End ======

# ====== Error Log Begin ====== 14:36:24.822 (1): Executed Command FileOpenStation \*\*\* Error Message \*\*\* 14:36:24.838 (1): RobotStudio .NET exception: Object reference not set to an instance of an object.

Base exception: NullReferenceException  
Object reference not set to an instance of an object.  
at ABB.Robotics.RobotStudio.Stations.RsPathProcedure.get\_ModuleName()  
at ABB.Robotics.RobotStudio.Stations.RsTask.GetDeclarationUrl(IDeclaration declaration)  
at ABB.Robotics.RobotStudio.Stations.RsTask.AddToDeclarationsCache(IDeclaration declaration)  
at ABB.Robotics.RobotStudio.Stations.RsTask.AfterLoad(PimDocument doc)  
at RobotStudio.API.Persistence.PimDocument.LoadXml(Stream xmlStream, String expectedDocType, Int64 pimStreamSize, Nullable`1 requiredGuid) at RobotStudio.API.Persistence.PimDocument.InternalLoad(String fileName, String docType, Boolean readOnly, Nullable`1 requiredGuid)  
at RobotStudio.API.Persistence.PimDocument.Load(String fileName, String docType, Boolean readOnly, Boolean allowExisting, Nullable`1 requiredGuid, ProgressNotification progressDelegate, Double progressStart, Double progressEnd)  
at ABB.Robotics.RobotStudio.Stations.Station.Load(String fileName, Boolean asReadOnly, ProgressNotification progressDelegate, FileNotFoundNotification fileNotFoundDelegate, Boolean loadGeometry)  
at ABBInternal.FileCommands.FileCommandServices.OpenStation(String fileName, Boolean loadGeometry)  
at ABBInternal.FileCommands.OpenStationCommandHandler.OpenStationCommandHandler\_ExecuteCommand(Object sender, ExecuteCommandEventArgs e)  
at ABB.Robotics.RobotStudio.Environment.CommandBarButton.RaiseExecuteCommand(ExecuteCommandReason reason)

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1279 MB, peak 1279 MB  
Private bytes: current 1275 MB  
Available : virtual 2269 MB, physical 4384 MB  
Memory load : 46%  
====== Error Log End ======

# ====== Error Log Begin ====== 14:36:24.838 (1): Executed Command FileOpenStation \*\*\* Error Message \*\*\* 14:36:25.103 (1): RobotStudio .NET exception: Object reference not set to an instance of an object.

Base exception: NullReferenceException  
Object reference not set to an instance of an object.  
at ABB.Robotics.RobotStudio.Stations.RsInstruction.get\_InstructionArguments()  
at RobotStudio.API.Internal.PathInformationHelper.GetArgumentReferenced(RsTask task, RsInstructionDescription instrDecl, RsInstruction instr, String datatype)  
at RobotStudio.API.Internal.PathInformationHelper.GetWObjArgument(RsTask task, RsMoveInstruction moveInstr)  
at RobotStudio.API.Internal.PathInformationHelper.GetGeometricDeclarations(RsTask task, String pathModule, RsMoveInstruction moveInstr, RsDataDeclaration& viaPoint, RsDataDeclaration& cirPoint, RsRobTarget& toPoint, RsWorkObject& wobj, RsJointTarget& toJointPos)

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1288 MB, peak 1289 MB  
Private bytes: current 1285 MB  
Available : virtual 2252 MB, physical 4371 MB  
Memory load : 46%  
====== Error Log End ======

# ====== Error Log Begin ====== \*\*\* Error Message \*\*\* 14:36:25.118 (1): RobotStudio .NET exception: Object reference not set to an instance of an object.

Base exception: NullReferenceException  
Object reference not set to an instance of an object.  
at RobotStudio.Services.Graphics.GfxShapeUpdater.CreatePathShape(IGfxObject obj, Int32 oldShape)  
at RobotStudio.Services.Graphics.GfxShapeUpdater.UpdateShapes(IEnumerable`1 freeCaches, IEnumerable`1 deleteShapes, IEnumerable`1 updateShapes) at RobotStudio.Services.Graphics.GfxService.UpdateShapes(IEnumerable`1 freeCaches, IEnumerable`1 deleteShapes, IEnumerable`1 updateShapes)  
at RobotStudio.API.Internal.GfxUpdater.UpdateShapes()  
at RobotStudio.API.Internal.GfxUpdater.UpdateAll(Boolean forceRefresh)  
at RobotStudio.API.Internal.GfxUpdater.Application\_Idle(Object sender, EventArgs e)  
at System.EventHandler.Invoke(Object sender, EventArgs e)  
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)  
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)  
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)  
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)  
at System.Windows.Forms.Application.Run(Form mainForm)  
at ABBInternal.StudioAppFramework.StudioAppFrameworkHost.Run()  
at RobotStudio.Program.Main(String args)

\*\*\* Active States \*\*\*

\*\*\* Active Threads \*\*\*  
1: MainThread  
10: CLgRobServerCommandQueueThread

\*\*\* Memory Information \*\*\*  
Working set : current 1289 MB, peak 1289 MB  
Private bytes: current 1285 MB  
Available : virtual 2252 MB, physical 4371 MB  
Memory load : 46%  
====== Error Log End ======

---

<div class="post-metadata">

**Author:** ![Valerio](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@Valerio](https://tech-community.robotics.abb.com/u/Valerio)\
**Post date:** [February 11, 2016, 5:02pm UTC](https://tech-community.robotics.abb.com/t/object-reference-not-set-to-an-instance-of-object/5576/2 "2016-02-11T17:02:26Z")

</div>

Hi,

I see the same message when set the station in a memorized condition in the simulation manager.  
Do you know how to fix this problem?

Thanks for the help.
