Crash on null ptr dereference
Brought to you by:
chappies
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.