An unhandled exception occured!




Bannerlord has encountered a problem and needs to close. We are sorry for the inconvenience.
If you were in the middle of something, the progress you were working on might be lost.
This error can be caused by a faulty module XMLs, manifest (submodule.xml), or DLL (bad one or permission error).

If you have Community Patch installed, please click Attempt to Continue in order to capture logs that will be generated by it.
Or If you're debugging, you can disable the error window individually in config.json in BetterExceptionWindow submodule folder.


+ Reason

Source: TaleWorlds.CampaignSystem

Object reference not set to an instance of an object.

+ Inner exception

Source: No module

No inner exception was thrown

+ Callstacks

Protip: Use a debugger like dnSpy or Visual studio to trace the source of error, by stepping the program line by line.

Inner exception callstack:
No inner exception was thrown
Outer exception callstack:
   at TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultTradeItemPriceFactorModel.GetTradePenalty(ItemObject item, MobileParty clientParty, PartyBase merchant, Boolean isSelling, Single inStore, Single supply, Single demand)
   at TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultTradeItemPriceFactorModel.GetPriceFactor(ItemObject item, MobileParty tradingParty, PartyBase merchant, Single inStoreValue, Single supply, Single demand, Boolean isSelling)
   at TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultTradeItemPriceFactorModel.GetPrice(EquipmentElement itemRosterElement, MobileParty clientParty, PartyBase merchant, Boolean isSelling, Single inStoreValue, Single supply, Single demand)
   at TaleWorlds.CampaignSystem.TownMarketData.GetPrice(EquipmentElement itemRosterElement, MobileParty tradingParty, Boolean isSelling, PartyBase merchantParty)
   at TaleWorlds.CampaignSystem.Village.GetItemPrice(EquipmentElement itemRosterElement, MobileParty tradingParty, Boolean isSelling)
   at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.BanditsCampaignBehavior.bandit_start_defender_condition()
   at TaleWorlds.CampaignSystem.ConversationSentence.RunCondition()
   at TaleWorlds.CampaignSystem.ConversationManager.GetSentenceOptions(Boolean onlyPlayer, Boolean processAfterOneOption)
   at TaleWorlds.CampaignSystem.ConversationManager.ProcessPartnerSentence()
   at TaleWorlds.CampaignSystem.ConversationManager.StartNew(Int32 startingToken, Boolean setActionsInstantly)
   at TaleWorlds.CampaignSystem.ConversationManager.SetupAndStartMapConversation(MobileParty party, IAgent agent, IAgent mainAgent)
   at TaleWorlds.CampaignSystem.MapState.OnMapConversationStarts(ConversationCharacterData playerCharacterData, ConversationCharacterData conversationPartnerData)
   at SandBox.Source.CampaignMapConversationManager.OpenConversation(ConversationCharacterData playerCharacterData, ConversationCharacterData conversationPartnerData)
   at TaleWorlds.CampaignSystem.PlayerEncounter.DoMeetingInternal()
   at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.EncounterGameMenuBehavior.game_menu_encounter_meeting_on_init(MenuCallbackArgs args)
   at TaleWorlds.CampaignSystem.GameMenus.GameMenu.RunOnInit(Game game, MenuContext menuContext)
   at TaleWorlds.CampaignSystem.MenuContext.HandleStates()
   at TaleWorlds.CampaignSystem.MapState.EnterMenuMode()
   at TaleWorlds.CampaignSystem.GameMenus.GameMenu.ActivateGameMenu(String menuId)
   at TaleWorlds.CampaignSystem.PlayerEncounter.Init(PartyBase attackerParty, PartyBase defenderParty, Settlement settlement)
   at TaleWorlds.CampaignSystem.Campaign.HandlePartyEncounter(PartyBase attackerParty, PartyBase defenderParty)
   at TaleWorlds.CampaignSystem.Campaign.CheckPartyEncounter(MobileParty mobileParty)
   at TaleWorlds.CampaignSystem.Campaign.HandleEncounters(Single dt)
   at TaleWorlds.CampaignSystem.Campaign.Tick(Single dt)
   at TaleWorlds.CampaignSystem.Campaign.RealTick(Single realDt)
   at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
   at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
   at TaleWorlds.Core.Game.OnTick(Single dt)
   at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
   at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, Single dt)

+ Installed mods

Hide taleworlds mods

Hide unloaded mods

+ Loaded DLLs

Hide taleworlds dll

+ Troubleshoot

You can try several troubleshoot options down below.

Check for XML typos if an error were caused by faulty XMLs, tap the button on the right to validate them.
Attempt to disable faulty mods. This option may only work with the original Taleworlds Launcher.
Emergency save.
Forcefully to save the game. This might not work!