Opening MuseScore without score and Show Play Panel enabled causes crash

• Nov 25, 2013 - 10:36
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Hi,
Steps to reproduce:

1. Activate options:
Edit - Preferences - General - Programme start - Start empty
Edit - Preferences - General - Windows - Show Play panel

2. With next restart of MuseScore occurs crash with error:
AppName: nightly.exe AppVer: 0.0.0.0 ModName: nightly.exe
ModVer: 0.0.0.0 Offset: 00253410

v.2.0.0, build: ef996b4, Win XP SP3

Thanks,
Tom


Comments

This crashes because line 534 in mscore/seq.cpp (cs->tempomap()->setRelTempo(msg.realVal);) has a null value for "cs", since there is no current score.

Preceding this line with

if(cs)

prevents the crash, and doesn't appear to cause any other untoward effects.

Does this warrant a pull request?