A NullpointerException occured when service.getActiveNotifications() returns null.
Details
Details
Diff Detail
Diff Detail
- Repository
- R225 KDE Connect - Android application
- Branch
- fix
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
We get null here because the NotificationListenerService is not ready yet, according to the Android docs. Are you sure this is the correct solution? Maybe we should wait until we get the onListenerConnected signal?
I've had some problems lately with receiving notifications lately, although I'm not sure this is related to the (now suppressed) exception.
Comment Actions
Good point. I took this into account while creating D9558, so this patch isn't needed anymore.
Your issues might be related to https://bugs.kde.org/show_bug.cgi?id=386246