Null reference exception when running Content.RootDirectory = "Content";

Hello, I’m new to MonoGame. I’m currently working on my own little library that wraps around MonoGame, adding some utilities for myself.

Here is the code that errors. (Line 29)

Here is the code that creates the SharpContext object.

When running the game, the following error occurs:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at SharpEngine.SharpContext..ctor() in /run/media/disk/dev/games/SharpEngine/src/SharpContext.cs:line 24
   at SharpGame.Game1..ctor() in /run/media/disk/dev/games/SharpGame/Program.cs:line 9
   at SharpGame.Program.Main(String[] args) in /run/media/disk/dev/games/SharpGame/Program.cs:line 22
Aborted (core dumped)

If any more info is needed, I’m happy to provide it.

Thanks in advance for any help :slight_smile:.