Bannerlord has encountered a problem and will close itself.
This is a community Crash Report. Please save it and use it for reporting the error. Do not provide screenshots, provide the report!
Most likely this error was caused by a custom installed module.

If you were in the middle of something, the progress might be lost.

Launcher: unknown launcher - cmd (10.0.19041.4355 (WinBuild.160101.0800))
Runtime: .NET Framework 4.8.9310.0




+ Exception

Exception Information:
Potential Source Module Id: YiGuThreeKingdoms
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Stacktrace:
  1. at void YiGu.ThreeKingdoms.Modules.SpecialitySystem.CampaignBehaviors.TKVillagerCampaignBehavior.OnSettlementEntered(MobileParty mobileParty, Settlement settlement, Hero hero) in F:/YiGuThreeKingdomsCode/YiGu.ThreeKingdoms/Modules/SpecialitySystem/CampaignBehaviors/TKVillagerCampaignBehavior.cs:line 58
  2. at void TaleWorlds.CampaignSystem.MbEvent<T1, T2, T3>.InvokeList(EventHandlerRec<T1, T2, T3> list, T1 t1, T2 t2, T3 t3)
  3. at void TaleWorlds.CampaignSystem.CampaignEvents.OnSettlementEntered(MobileParty party, Settlement settlement, Hero hero)
  4. at void TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnSettlementEntered(MobileParty party, Settlement settlement, Hero hero)
  5. at void TaleWorlds.CampaignSystem.Actions.EnterSettlementAction.ApplyInternal(Hero hero, MobileParty mobileParty, Settlement settlement, EnterSettlementDetail detail, object subject, bool isPlayerInvolved)
  6. at void TaleWorlds.CampaignSystem.Actions.EnterSettlementAction.ApplyForParty(MobileParty mobileParty, Settlement settlement)
  7. at void TaleWorlds.CampaignSystem.EncounterManager.StartSettlementEncounter(MobileParty attackerParty, Settlement settlement)
  8. at void TaleWorlds.CampaignSystem.Settlements.Settlement.OnPartyInteraction(MobileParty mobileParty)
  9. at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounterForMobileParty(MobileParty mobileParty, float dt)
  10. at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounters(float dt)
  11. at void TaleWorlds.CampaignSystem.Campaign.Tick()
  12. at void TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(float dt)
  13. at void TaleWorlds.CampaignSystem.GameState.MapState.OnTick(float dt)
  14. at void TaleWorlds.Core.GameStateManager.OnTick(float dt)
  15. at void TaleWorlds.Core.Game.OnTick(float dt)
  16. at void TaleWorlds.Core.GameManagerBase.OnTick(float dt)
  17. at void TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, float dt)

+ Enhanced Stacktrace

+ Involved Modules and Plugins

From Highest Probability to Lowest:

+ Installed Modules

+ Assemblies

+ Harmony Patches

+ Log Files