Accessing HalfTime when there's no score causes crash

• Feb 18, 2013 - 15:32
Type
Functional
Severity
S4 - Minor
Status
closed
Project

1. Open MuseScore.
2. In 'Plug-ins', click 'HalfTime'.

Result: Crash.

Using MuseScore 1.2 - Mac 10.7.5.


Comments

how did you manage to have the Plugins menu being enabled without a score being open?
This, to the best of my knowledge, just isn't possible in MuseScore before 2.0

The Fix, however, is simple: add

if (typeof curScore === 'undefined') return;

to the script, right before it accesses curScore.
And that plugin does that already, so I'm even more confused?!?

Status (old) active needs info

That code is already in, so I'm absolutly flabbergasted how you got it to chrash.
Can you try the Script debugger and step thru the plugin code to find where exactly it crashes?