dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

Null reference while creating world preview mesh.

Open mklingen opened this issue 6 years ago • 1 comments

This one has a really long breadcrumb trail.

https://sentry.io/organizations/cfg/issues/921609673/?project=192119&referrer=github_plugin

NullReferenceException: Object reference not set to an instance of an object.
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\WorldGeneration\WorldGenerator.cs", line 85, in CreateMesh
    Void CreateMesh(Microsoft.Xna.Framework.Graphics.GraphicsDevice)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\WorldGeneration\WorldGeneratorPreview.cs", line 600, in PreparePreview
    Void PreparePreview(Microsoft.Xna.Framework.Graphics.GraphicsDevice)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\WorldGeneration\WorldGeneratorState.cs", line 382, in Update
    Void Update(DwarfCorp.DwarfTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\GameStates\GameStateManager.cs", line 132, in Update
    Void Update(DwarfCorp.DwarfTime)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\DwarfGame.cs", line 739, in Update
    Void Update(Microsoft.Xna.Framework.GameTime)

Object reference not set to an instance of an object.

mklingen avatar Mar 09 '19 00:03 mklingen

Similar cause to #1028. State manager goes back to MainMenuState in the middle of a load. Same fix should have prevented this, but unknown.

mklingen avatar Mar 17 '19 18:03 mklingen