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

NPE when calling QtNetwork.unregisterReceiver() at exit

XMLWordPrintable

    • Android
    • 710263eca (dev), c4768ff0d (6.10), 17efaa4c0 (6.9), 481a86de8 (tqtc/lts-6.8), f0cfee156 (tqtc/lts-6.5)
    • 2025wk28s2QtforAndroid

      We’re seeing this NPE log when exiting the app. It doesn’t seem to crash the app, but might still be nice to add safety for this.

      java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Context.unregisterReceiver(android.content.BroadcastReceiver)' on a null object reference
      	at org.qtproject.qt.android.network.QtNetwork.unregisterReceiver(QtNetwork.java:49)
      	at org.qtproject.qt.android.QtNative.startQtApplication(Native Method)
      	at org.qtproject.qt.android.QtNative$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0)
      	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
      	at java.lang.Thread.run(Thread.java:919)
      

       

       

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

            assam Assam Boudjelthia
            fseiffert Frederik Seiffert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: