This project is read-only.
1
Vote

ArgumentNullException when turning in piece

description

A spanish Windows Phone user emailed the following stacktrace:
Time stamp: 15/01/2012 02:20 p.m.
 
System.ArgumentNullException: Value can not be null.
Parameter name: square
at Lokeiv.Games.Ludo.Model.Board.MovePiece(Piece piece, Square square)
at Lokeiv.Games.Ludo.Model.Board.TurnInPiece(Piece piece)
at Lokeiv.Games.Ludo.Model.Board.CheckAndTurnInPiece(Piece piece)
at Lokeiv.Games.Ludo.Model.Board.MovePiece(Piece piece, Square square)
at Lokeiv.Games.Ludo.Model.Board.MovePiece(MoveablePiece movable)
at Lokeiv.Games.Ludo.Engine.MovePiece(MoveablePiece movablePiece)
at Ludo.WP7.Client.ViewModels.MainViewModel.HandleMouseClickInBoard(Point point)
at Ludo.WP7.Client.MainPage.boardCanvas_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

file attachments

comments

eloekset wrote Jan 16, 2012 at 3:47 PM

Another variation of a very similar or identical situation reported by another Windows Phone user:
Time stamp: 16/01/2012 12:50

System.NullReferenceException: NullReferenceException
at System.Collections.Generic.ObjectEqualityComparer1.IndexOf(Piece[] array, Piece value, Int32 startIndex, Int32 count)
at System.Array.IndexOf[T](Piece[] array, Piece value, Int32 startIndex, Int32 count)
at System.Collections.Generic.List
1.IndexOf(Piece item)
at System.Collections.Generic.List`1.Remove(Piece item)
at Lokeiv.Games.Ludo.Model.Board.MovePiece(Piece piece, Square square)
at Lokeiv.Games.Ludo.Model.Board.TurnInPiece(Piece piece)
at Lokeiv.Games.Ludo.Model.Board.CheckAndTurnInPiece(Piece piece)
at Lokeiv.Games.Ludo.Model.Board.MovePiece(Piece piece, Square square)
at Lokeiv.Games.Ludo.Model.Board.MovePiece(MoveablePiece movable)
at Lokeiv.Games.Ludo.Engine.MovePiece(MoveablePiece movablePiece)
at Ludo.WP7.Client.ViewModels.MainViewModel.HandleMouseClickInBoard(Point point)
at Ludo.WP7.Client.MainPage.boardCanvas_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

wrote May 26, 2012 at 7:15 AM

eloekset wrote May 26, 2012 at 7:15 AM

More stacktraces of recent exceptions (see attachment).

wrote Feb 13, 2013 at 10:59 PM