Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Crash: Exception: java.lang.NullPointerException: Attempt to invoke interface method '...IMXStore.getFilters()' on a null object reference #705

Open
giomfo opened this issue Mar 29, 2021 · 3 comments
Assignees
Labels
bug Something isn't working P1

Comments

@giomfo
Copy link
Contributor

giomfo commented Mar 29, 2021

Tchap Build : 77
Tchap Version : 1.1.1_a (G-66163c55b-2020-12-18 14:08:48 +0100)
SDK Version : 0.9.37-dev (184214f2e-2020-11-18 01:42:26 +0100)
Memory statuses
usedSize 16 MB
freeSize 3 MB
totalSize 20 MB
Activity:im.vector.activity.SplashActivity, Exception: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Map org.matrix.androidsdk.data.store.IMXStore.getFilters()' on a null object reference
at org.matrix.androidsdk.MXSession.convertFilterToFilterId(MXSession.java:1129)
at org.matrix.androidsdk.MXSession.setSyncFilter(MXSession.java:1106)
at org.matrix.androidsdk.MXSession.startEventStream(MXSession.java:962)
at org.matrix.androidsdk.MXSession.startEventStream(MXSession.java:1175)
at im.vector.services.EventStreamServiceX.startEventStream(EventStreamServiceX.kt:359)
at im.vector.services.EventStreamServiceX.access$startEventStream(EventStreamServiceX.kt:56)
at im.vector.services.EventStreamServiceX$monitorSession$1.onStoreCorrupted(EventStreamServiceX.kt:396)
at org.matrix.androidsdk.data.store.MXMemoryStore.dispatchOnStoreCorrupted(MXMemoryStore.java:1509)
at org.matrix.androidsdk.data.store.MXFileStore$1$1.run(MXFileStore.java:552)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:208)
at android.os.HandlerThread.run(HandlerThread.java:61)

@giomfo giomfo added the bug Something isn't working label Mar 29, 2021
@giomfo
Copy link
Contributor Author

giomfo commented Mar 29, 2021

This crash seems happen when the account has expired.
The crash is prompted to the user when he renews the account :(

@giomfo
Copy link
Contributor Author

giomfo commented Apr 20, 2021

Other users observed it - not related to expired account

@giomfo giomfo added the P2 label Apr 20, 2021
@giomfo giomfo self-assigned this Apr 20, 2021
@giomfo giomfo added P1 and removed P2 labels Apr 20, 2021
@giomfo
Copy link
Contributor Author

giomfo commented May 27, 2021

Similar crash
--------------------------------- crash call stack ---------------------------------
Tchap Build : 79
Tchap Version : 1.2.1_a (G-4d9e6aa67-2021-04-02 13:34:25 +0200)
SDK Version : 0.9.37-dev (68165b6d-2020-12-09 16:15:52 +0100)
Phone : SM-G973F (G973FXXU9FUBD 11 REL)
Memory statuses
usedSize 38 MB
freeSize 217 MB
totalSize 256 MB
Thread: MXFileStoreBackgroundThread_@ Activity:im.vector.activity.SplashActivity, Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.matrix.androidsdk.sync.EventsThread.setFilterOrFilterId(java.lang.String)' on a null object reference
at org.matrix.androidsdk.MXSession.convertFilterToFilterId(MXSession.java:1151)
at org.matrix.androidsdk.MXSession.setSyncFilter(MXSession.java:1106)
at org.matrix.androidsdk.MXSession.startEventStream(MXSession.java:962)
at org.matrix.androidsdk.MXSession.startEventStream(MXSession.java:1175)
at im.vector.services.EventStreamServiceX.startEventStream(EventStreamServiceX.kt:359)
at im.vector.services.EventStreamServiceX.access$startEventStream(EventStreamServiceX.kt:56)
at im.vector.services.EventStreamServiceX$monitorSession$1.onStoreReady(EventStreamServiceX.kt:388)
at org.matrix.androidsdk.data.store.MXMemoryStore.dispatchOnStoreReady(MXMemoryStore.java:1495)
at org.matrix.androidsdk.data.store.MXFileStore$1$1.run(MXFileStore.java:562)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.os.HandlerThread.run(HandlerThread.java:67)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P1
Projects
None yet
Development

No branches or pull requests

1 participant