Object reference not set to an instance of an object.

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
fantode
Posts: 2
Joined: 2020-06-11 15:54

Object reference not set to an instance of an object.

Post by fantode »

Just found of this game today and went in to download it and install it etc.. after completing the manual I finally decide to open up the game to check it out and Im welcomed by this message.

__________________________________________________________________________

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2020-06-11T17:58:32

Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at ??.?.()
   at Reality.BF2.Settings.Video..(String )
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 )
   at -.f.a()
   at -.f.OnStartup(StartupEventArgs a)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
__________________________________________________________________________
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

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

Post by AlonTavor »

Try deleting the Project Reality profiles folder under my documents. Then make sure you run the launcher as admin and have full permissions.
fantode
Posts: 2
Joined: 2020-06-11 15:54

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

Post by fantode »

AlonTavor wrote:Try deleting the Project Reality profiles folder under my documents. Then make sure you run the launcher as admin and have full permissions.
Unfortunately didn't work. The game was already set to 'run as administrator'. Is there a chance a reinstall could fix it?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

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

Post by AlonTavor »

Reinstall isn't going to fix it
iGregory
Posts: 2
Joined: 2020-06-17 23:45

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

Post by iGregory »

Wow...

I just came here to post this exact same message.... just found the game and installed it only to get the same error screen.

One thing I have noticed -- it says that there's an update available, but it times out saying it can't reach the server... do you get the same thing?

Thanks.

Greg
iGregory
Posts: 2
Joined: 2020-06-17 23:45

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

Post by iGregory »

So, the updates finally managed to get all the way through, and this fixed this issue.

I wanted to post this here so that if anybody ever comes looking for this issue, they will know they just have to be patient and let the updates run. I did get some time-out errors while downloading the updates, but eventually, it finished and all works well.

Greg
Post Reply

Return to “PR:BF2 Support”