On Thu, Oct 13, 2016 at 2:31 PM, Adriaan de Groot <gr...@kde.org> wrote:
> On Thursday, October 13, 2016 01:12:27 PM Martin Graesslin wrote:
>> Just an example of an issue I run into today:
>> https://git.reviewboard.kde.org/ r/129171/
>> Application just crashed on startup due to a missing nullptr check exposed
>> by a different windowing systems.
> This intrigued me, so I went looking at the Qt docs
> (e.g.http://doc.qt.io/qt-5/qguiapplication.html#clipboard) to see if they
> said anything about the returned pointers:
> Neither function's documentation says it can return a nullptr; neither says it
> can't. But what really surprises me in the documentation is the use of the
> words "object" and "reference" here.
What's even more surprising is that the behavior seems to differ
across applications. For example on the very same system I can
reproduce the kcolourpaint crash pointed by Martin, but I cannot
reproduce the crash in , which according to the stacktrace is also
happening because of a null mimeData pointer from the clipboard.