Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105713

Segfault when getting QJsonValue() for non-existent key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4.0 Beta1
    • None

    Description

      For example,

      QJsonObject emptyObject;
      qDebug() << "Value:" << emptyObject.find(QLatin1String("Key")).value(); // <= segfault

      Seems like a regression in 6.4. It doesn't segfault in 6.3.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            jaeyoon.jung Jaeyoon Jung
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes