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

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

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-119007
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes