Null Reference Exception on Launch via Launcher

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Gentlefood
Posts: 9
Joined: 2011-12-06 22:20

Null Reference Exception on Launch via Launcher

Post by Gentlefood »

After attempting two fresh full installs via the Google ISO dl I've been confronted with this issue.
Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

> System.NullReferenceException: Object reference not set to an instance of an object.
at Ta.h.a()
at Reality.BF2.Settings.Video.a.a(String a)
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 a)
at -.f.a()
at -.f.OnStartup(StartupEventArgs a)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[/code]
Tried two fresh dl installs and multiple installs from the ISO to no avail. Seems to be completely stuck at the null reference error.

Launching the game without the launcher functions outside of the "Launch via the launcher" message.
Last edited by Gentlefood on 2016-11-28 12:04, edited 1 time in total.
Gentlefood
Posts: 9
Joined: 2011-12-06 22:20

Re: Null Reference Exception on Launch via Launcher

Post by Gentlefood »

Update: Solution Found, at least for the above issue.

The Default Profile provided by the installer is missing critical files leading to the null pointer.

If you experience this issue look first in Documents > ProjectReality > Profiles > Default
And add in any files that are missing from here: https://www.dropbox.com/sh/a0qm9ybeg3kl ... mszAa?dl=0

Additionally! When you retrieve or create your new profile it also appears to be lacking the above files, be sure to copy them over from the default into your new profile slot (likely numbered "0001" in your profiles)
Last edited by Gentlefood on 2016-11-28 20:50, edited 1 time in total.
Reason: Added final step
Post Reply

Return to “PR:BF2 Support”