Menu

#19 Crash on null ptr dereference

open
nobody
None
5
2006-05-13
2006-05-13
No

Start new match, accept all defaults.
Commence Match.
Commence Innings.
End Innings (either by taking 10 wickets, or just Ctrl-E)
Create an Interruption (e.g. Other Interruption)
Now Recommence Innings (no overs lost)
(Note, innings had not commenced yet, but can recommence)
Give a wicket when the Quick Palette window appears,
any sort of wicket will do, e.g. Bowled.
Choose next batsman.
BANG! segfault

problem is that when the innings recommences after the
interruption, there is no active team or batsman, so
Match::striker and Match::nonStriker are null and so
calling Batsman::out() crashes.

An interruption between innings should start the next
innings automatically, or it should be started on
recommencing.

Discussion


Log in to post a comment.

Auth0 Logo