Skip to content

Commit

Permalink
fixed #18412: Added nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
Eism committed Jul 5, 2023
1 parent e190d03 commit 116bbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/noteentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Ret Score::putNote(const Position& p, bool replace)
ChordRest* cr = _is.cr();

auto checkTied = [&](){
if (!cr->isChord()) {
if (!cr || !cr->isChord()) {
return false;
}
auto ch = toChord(cr);
Expand Down

0 comments on commit 116bbb9

Please sign in to comment.