Questions
Median Android app crashes on Honeywell CT45P with Android 13
Hello,
I am experiencing a reproducible crash when running a Median-generated Android application on a Honeywell CT45P running Android 13.
The application crashes immediately on startup, before the WebView/UI is displayed.
Device:
- Honeywell CT45P
- Android 13 / API 33
- Build: 313.00.09.0068-G
- Fingerprint:
Honeywell/CT45P-X0-D-G/CT45P:13/313.00.09-G/0068:user/release-keys
I generated the APK from Median App Studio and installed it directly on the physical Honeywell device. The APK installs successfully, but crashes immediately when launched.
Crash log:
FATAL EXCEPTION: main
java.lang.RuntimeException:
Unable to create application co.median.android.GoNativeApplication:
java.lang.NullPointerException: Attempt to invoke interface method
'java.util.Iterator java.util.List.iterator()'
on a null object reference
Caused by: java.lang.NullPointerException:
Attempt to invoke interface method
'java.util.Iterator java.util.List.iterator()'
on a null object reference
at co.median.android.GoNativeApplication.onCreate(...:237)
I also created a small diagnostic Android application which calls:
SubscriptionManager.getActiveSubscriptionInfoList()
On the problematic Honeywell Android 13 device, the result is:
READ_PHONE_STATE=true
FEATURE_TELEPHONY_SUBSCRIPTION=false
FEATURE_TELEPHONY_RADIO_ACCESS=false
FEATURE_TELEPHONY=false
activeSubscriptionInfoList == null: true
activeSubscriptionInfoList.size: null
For comparison:
Honeywell CT45P / Android 12:
activeSubscriptionInfoList == null: false
activeSubscriptionInfoList.size: 0
Median app: works
Redmi Note 10S / Android 13:
activeSubscriptionInfoList == null: false
activeSubscriptionInfoList.size: 0
Median app: works
This suggests that the issue may be related to the Honeywell Android 13 implementation of SubscriptionManager.
The crash occurs because the Median runtime attempts to iterate over the result of getActiveSubscriptionInfoList() without handling a possible null value, which leads to the NullPointerException during GoNativeApplication.onCreate().
Importantly, I reproduced the crash by launching the APK directly on the Honeywell device, outside of SOTI MobiControl.
Could you please confirm whether this is a known issue and whether the Median Android runtime can be updated to handle a null result from SubscriptionManager.getActiveSubscriptionInfoList()?
I can provide the complete crash log and diagnostic APK if needed.
Thank you.