[RESOLVED][1900.20] Object reference not set to an instance of an object.

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

[RESOLVED][1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Trying to load any scenario i get "Object reference not set to an instance of an object." when clicking "Load selected".
Attachments
ExceptionLog_2026_10_06.txt
(5.72 KiB) Downloaded 9 times
Dimitris
Posts: 16005
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: [1900.20] Object reference not set to an instance of an object.

Post by Dimitris »

According to the exception log, you are not running Command as administrator. Can you try running it as administrator ?
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Tried that, It didn't help.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

FYI, Edit Scenario and Load Saved Game give the same error too.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

As per your thread, Dimitris, on the Steam Discussions i rebooted my PC (it already had the latest updates) and then CMO was getting stuck on the Loading screen. I completely deleted CMO and reinstalled it. It's still hanging at the Loading Screen but there is a lot more info in the Exception Log (see attachment)
Attachments
ExceptionLog_2026_10_06.txt
(13.13 KiB) Downloaded 8 times
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Ok, I got around the hanging at the Load Screen (totally forgot about the Launcher, I've been bypassing that for the last couple years.)

I still can't load any Scenarios. Here's the Exception Log when trying to load a scenario:
Attachments
ExceptionLog_2026_10_06.txt
(22.8 KiB) Downloaded 8 times
Nikel
Posts: 3432
Joined: Tue Mar 24, 2009 10:51 am

Re: [1900.20] Object reference not set to an instance of an object.

Post by Nikel »

.net is updated to the last version?

https://dotnet.microsoft.com/en-us/down ... ork/net481
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Thanks for tip. .Net is good about updating if an app needs a specific version.
I did check though, and I have 4.8.1 of .net framework, and versions 3.1.32 through 10.0.12 of .net (core).
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

...and this morning I'm back to the loading screen getting hung up and not loading the Main UI with these in the Exception Log:

Code: Select all

07-10-2026 04:49:11 -- Bv1.10 - Build 1900.20 -- Object reference not set to an instance of an object. -- Scen :  -- DB :  -- Exception: Object reference not set to an instance of an object.
Stack Trace:    at (Object , Boolean )
   at JRrZDZ5CvtZpIx7QUeaZ.lfW55dwdZtB(Object , Boolean , JRrZDZ5CvtZpIx7QUeaZ )
   at Command.MainForm.MainForm_Load(Object sender, EventArgs e)
Call Stack & Error details: 
Error at 200579: Object reference not set to an instance of an object.Calling MainForm_Shown.
Populated CanalList.


07-10-2026 04:49:11 -- Bv1.10 - Build 1900.20 -- Object reference not set to an instance of an object. -- Scen :  -- DB :  -- Exception: Object reference not set to an instance of an object.
Stack Trace:    at (Object )
   at nQcfNt5CXlY6nOFxUffS.lfW55dwdZtB(Object , nQcfNt5CXlY6nOFxUffS )
   at Command.MainForm.CwZlDx0aPE(Object  , EventArgs  )
Call Stack & Error details: 
Error at 200580: Object reference not set to an instance of an object.
Attachments
ExceptionLog_2026_10_07.txt
(13.66 KiB) Downloaded 5 times
Nikel
Posts: 3432
Joined: Tue Mar 24, 2009 10:51 am

Re: [1900.20] Object reference not set to an instance of an object.

Post by Nikel »

Another trial and error suggestion.

Back up and delete the Command.ini file located in the "\Config" folder.

CMO will generate a new one when you restart it.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Thanks. Tried that yesterday but did it again just now. no luck.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

This update works fine on my laptop. I compared the Exception Logs on my laptop (working fine) and desktop (failing to load) and noticed all the messages are the same except when my laptop message states "License: Command full version" my desktop spews out the 2 "Object reference not set to an instance of an object" messages as seen above.
Dimitris
Posts: 16005
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: [1900.20] Object reference not set to an instance of an object.

Post by Dimitris »

So, something related to Steam licensing.

Can you check if there is a file called steam_appid.txt inside the installation folder on Steam?

If no such file exists, can you create it and write inside it this number: 1076160
Then save it, close it and try starting Command.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

I do have that file with the right content in it. Tried recreating it, but no change in behaviour. Still not working.

I did a complete reinstall yesterday, but I'll try again with a complete reboot after uninstall and before install. Not sure what else to try.
Nikel
Posts: 3432
Joined: Tue Mar 24, 2009 10:51 am

Re: [1900.20] Object reference not set to an instance of an object.

Post by Nikel »

Is it not this line where the error happens in most of the exception logs? However it is not always at the same moment.

"Configured MainForm working area"


"License: Command full version" Happens after that one.


Dxdiag file, something related with CMO in it?
Dimitris
Posts: 16005
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: [1900.20] Object reference not set to an instance of an object.

Post by Dimitris »

Probably a long shot, but: Apply all Windows updates and restart your machine.
MauriceB
Posts: 95
Joined: Thu Nov 07, 2024 6:53 pm

Re: [1900.20] Object reference not set to an instance of an object.

Post by MauriceB »

Well with an uninstall, reboot pc, full install, reboot pc, it's finally working. Not sure how it got corrupted, but thanks for the help guys.
Post Reply

Return to “Tech Support”