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

Segfault when getting QJsonValue() for non-existent key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 6.4.0 Beta1
    • Fix Version/s: None
    • Labels:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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