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)
For Gerrit Dashboard: QTBUG-138238 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
660076,9 | Android: declare ProxyInfoObject as Q_APPLICATION_STATIC | dev | qt/qtbase | Status: MERGED | +2 | 0 |
661056,2 | Android: declare ProxyInfoObject as Q_APPLICATION_STATIC | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
661071,2 | Android: declare ProxyInfoObject as Q_APPLICATION_STATIC | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
661285,2 | Android: declare ProxyInfoObject as Q_APPLICATION_STATIC | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
661908,2 | Android: declare ProxyInfoObject as Q_APPLICATION_STATIC | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |