Issue NullReferenceException: Object reference not set to an instance of an object.

Ember719

Newcomer
Here is my log showing the errors.

I have quite a few mods, so I'm not sure what exactly is causing the issue. Every time I try to sleep to the next day (I have harvested kale/potatoes/tulips and replanted them 50k times it seems repeating the same day over and over again) the screen goes black while loading and just doesn't.... load.

I have Stardew Valley Extended and am trying to marry Claire. The wedding is the following day that I am trying to get to. I'm in year 2, so I really don't want to have to start all over, but I understand if it is a necessity.

Any help is greatly appreciated. Thank you.
 

UlyanaLeyana

Planter
Here is my log showing the errors.

I have quite a few mods, so I'm not sure what exactly is causing the issue. Every time I try to sleep to the next day (I have harvested kale/potatoes/tulips and replanted them 50k times it seems repeating the same day over and over again) the screen goes black while loading and just doesn't.... load.

I have Stardew Valley Extended and am trying to marry Claire. The wedding is the following day that I am trying to get to. I'm in year 2, so I really don't want to have to start all over, but I understand if it is a necessity.

Any help is greatly appreciated. Thank you.
Hi, I'd recommend verifying your game files
 

UlyanaLeyana

Planter
I did this before coming here. There were 0 issues. Sorry, I should have mentioned beforehand.
If you have already tried everything from the troubleshooting page, then I think you need to report this error in the bug section of SVE mod page or SVE discord. Most likely the issue is with Claire because I don't see any mods that can conflict with NPCs from SVE.
Don't forget to leave a link to your SMAPI log. :)
 
Last edited:

Ember719

Newcomer
If you have already tried everything from the troubleshooting page, then I think you need to report this error in the bug section of SVE mod page or SVE discord. Most likely the issue is with Claire because I don't see any mods that can conflict with NPCs from SVE.
Don't forget to leave a link to your SMAPI log. :)
I will do that. Thank you so much for your help. <3
 

UlyanaLeyana

Planter
I will do that. Thank you so much for your help. <3
I found the reason and the solution.
11:59:37ERRORgameNullReferenceException: Object reference not set to an instance of an object. at StardewValley.Game1.prepareSpouseForWedding(Farmer farmer) in stardewvalley\Farmer\Farmer\Game1.cs:line 8362 at StardewValley.Game1._newDayAfterFade()+MoveNext() in stardewvalley\Farmer\Farmer\Game1.cs:line 9028 at StardewValley.Game1.<>c.<newDayAfterFade>b__716_2() in stardewvalley\Farmer\Farmer\Game1.cs:line 8714 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
11:59:37ERRORgameAn error occurred in the base update loop: System.Exception: Error on new day: --------------- Object reference not set to an instance of an object. at StardewValley.Game1.prepareSpouseForWedding(Farmer farmer) in stardewvalley\Farmer\Farmer\Game1.cs:line 8362 at StardewValley.Game1._newDayAfterFade()+MoveNext() in stardewvalley\Farmer\Farmer\Game1.cs:line 9028 at StardewValley.Game1.<>c.<newDayAfterFade>b__716_2() in stardewvalley\Farmer\Farmer\Game1.cs:line 8714 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --------------- at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4154 at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974 at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1080
In multiplayer theoretically the "farmhands not being able to marry custom NPCs", it's vanilla game issue. Currently the farmhand can typically only get custom npc a mermaid pendant if they're at 10 hearts with someone else as well or the wedding day loop happens.
"Fix" from Reddit:
Farmhand custom NPC marriage workaround
 
Top