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

Android: QtDisplayManager.onDisplayChanged() can lead to a null pointer exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • 6.7.0
    • QPA: Android
    • None
    • Android
    • d6861926a (dev)
    • 2023wk46FOQtforAndroid

    Description

      When the display listener for the manager is registered, the QtLayout is also passed to it, but since this happens in QtActivityDelegate constructor, the layout is still null. When onDisplayChanged() gets called, it tries to set the orientation of the layout without null checking, leading to a crash.

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              tinjapaavoseppa Tinja Paavoseppä
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes