Issue with recent clang fixes


Since “Fixes for some clang static analysis warnings” I run into an assertion when adding an empty PopupMenu. This used to work:

    PopupMenu p, q;
    p.addSubMenu("Open Recent", q);

But now triggers the assertion in:


Thanks, I think that assertion was a bit zealous - I’ve sorted it out now!