Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null reference while creating world preview mesh. #1027

Open
mklingen opened this issue Mar 9, 2019 · 1 comment
Open

Null reference while creating world preview mesh. #1027

mklingen opened this issue Mar 9, 2019 · 1 comment
Labels

Comments

@mklingen
Copy link
Collaborator

mklingen commented Mar 9, 2019

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
Copy link
Collaborator Author

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 mklingen added the Crash label Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant