musescore/MuseScore — pull request #329 by mgavioli (2013-05-04 16:52:53+00:00)
Title: Fix #20907 - Crash when starting a plugin with no score open

Fix #20907 - Regardless of check code in a plugin, starting a plugin with no score open crashes the program.

A diagnostic "prinf" statement was unconditionally trying to access the score name, even with no score. Corrected by adding a condition.