musescore/MuseScore — pull request #68 by heuchi (2012-09-08 19:44:44+00:00)
Title: fix: null pointer check in layout.cpp

proposed fix for 18097:
Check if pointer ks is valid since a key signature doesn't need to be present in all staves.