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

QSharedPointer debug crash if pointer is not assigned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.15.0
    • Core: I/O
    • None
    • All

      Debug operator for QSharedPointer<T> does not check if it holds a valid pointer, so calling it lead to crash if a pointer is not assigned to it.

      An expected behavior should be printing something like "QSharedPointer(0x0)" like when you try to qDebug() a null pointer QObject or QWidget

       

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

            thiago Thiago Macieira
            moia Maurizio Ingrassia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes