Crashing on version 2.8.1.1 [fixed]

Hi everyone,

We are getting the following error message when opening most of our program stages:

java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.String.replaceAll(java.lang.String, java.lang.String)’ on a null object reference
at org.hisp.dhis.android.core.arch.repositories.filters.internal.BaseAbstractFilterConnector.escapeQuotes(BaseAbstractFilterConnector.java:129)
at org.hisp.dhis.android.core.arch.repositories.filters.internal.StringFilterConnector.wrapValue(StringFilterConnector.java:57)
at org.hisp.dhis.android.core.arch.repositories.filters.internal.StringFilterConnector.wrapValue(StringFilterConnector.java:36)
at org.hisp.dhis.android.core.arch.repositories.filters.internal.AbstractFilterConnector.newWithWrappedScope(AbstractFilterConnector.java:66)
at org.hisp.dhis.android.core.arch.repositories.filters.internal.BaseAbstractFilterConnector.eq(BaseAbstractFilterConnector.java:54)
at org.dhis2.form.data.RulesUtilsProviderImpl.assign(RulesUtilsProviderImpl.kt:279)
at org.dhis2.form.data.RulesUtilsProviderImpl.applyRuleEffects(RulesUtilsProviderImpl.kt:99)
at org.dhis2.form.data.FormRepositoryImpl.applyRuleEffects(FormRepositoryImpl.kt:220)
at org.dhis2.form.data.FormRepositoryImpl.applyRuleEffects(FormRepositoryImpl.kt:236)
at org.dhis2.form.data.FormRepositoryImpl.composeList(FormRepositoryImpl.kt:59)
at org.dhis2.form.data.FormRepository$DefaultImpls.composeList$default(FormRepository.kt:11)
at org.dhis2.form.data.FormRepositoryImpl.fetchFormItems(FormRepositoryImpl.kt:45)
at org.dhis2.form.ui.FormViewModel$loadData$1$result$1.invokeSuspend(FormViewModel.kt:527)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@7e5c43, Dispatchers.IO]

We are using DHIS2 version 2.37.7.1

Please note that the current set up is working perfectly well with android version 2.6.2 but when we upgrade to a higher version, either 2.7 or 2.8 that when this error pops up.

Hi, @antony.sibanda . We have fix it for the next release, here is the issue with the details: [ANDROAPP-5369] - Jira.

1 Like

Thank you very much @andresmr

2 Likes