Seems like i got numerous error logs
Happened when i try to resize the windows by dragging the game border

client.log108.73KB
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Terraria.ModLoader.NPCLoader.BossHeadSlot(NPC npc, Int32& index) in tModLoader\Terraria\ModLoader\NPCLoader.cs:line 710
at Terraria.NPC.GetBossHeadTextureIndex() in tModLoader\Terraria\NPC.cs:line 1403
at Terraria.Main.DrawMap(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 44413
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at WorldGenPreviewer.UIWorldLoadSpecial.DrawSelf(SpriteBatch spriteBatch) in WorldGenPreviewer\UIWorldLoadSpecial.cs:line 374
at Terraria.UI.UIElement.Draw(SpriteBatch spriteBatch) in tModLoader\Terraria\UI\UIElement.cs:line 196
at Terraria.Main.DrawMenu(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 39808
at DMD<Terraria.Main::DoDraw>(Main this, GameTime gameTime)
at DMD<Terraria.Main::Draw>(Main this, GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562
at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878
at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 231