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

System.NullReferenceException: 'Object reference not set to an instance of an object.' PieceLists is missing some entries #42

Open
EikeSchwass opened this issue Jul 21, 2023 · 3 comments

Comments

@EikeSchwass
Copy link

Hi, just got System.NullReferenceException: 'Object reference not set to an instance of an object.' Looks like it rarely happens, but just in case I documented the stack trace here:
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=Chess-Challenge StackTrace: at ChessChallenge.Chess.Board.MovePiece(Int32 piece, Int32 startSquare, Int32 targetSquare) in C:\Users\e.schwass\Source\Repos\Chess-Challenge\Chess-Challenge\src\Framework\Chess\Board\Board.cs:line 114 at ChessChallenge.Chess.Board.MakeMove(Move move, Boolean inSearch) in C:\Users\e.schwass\Source\Repos\Chess-Challenge\Chess-Challenge\src\Framework\Chess\Board\Board.cs:line 143 at ChessChallenge.Application.ChallengeController.PlayMove(Move move) in C:\Users\e.schwass\Source\Repos\Chess-Challenge\Chess-Challenge\src\Framework\Application\Core\ChallengeController.cs:line 256 at ChessChallenge.Application.ChallengeController.Update() in C:\Users\e.schwass\Source\Repos\Chess-Challenge\Chess-Challenge\src\Framework\Application\Core\ChallengeController.cs:line 366 at ChessChallenge.Application.Program.Main() in C:\Users\e.schwass\Source\Repos\Chess-Challenge\Chess-Challenge\src\Framework\Application\Core\Program.cs:line 40

image

@Binto86
Copy link

Binto86 commented Jul 21, 2023

Got the exact same thing

@Binto86
Copy link

Binto86 commented Jul 21, 2023

For me this was a dumb error, I was trying to make move I already made

@Chrislee187
Copy link

This may be the same issue as #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants