Skip to content

Commit

Permalink
Remove init block blocking thrown errors (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
LZRS authored May 3, 2024
1 parent 44d53d0 commit a00aa10
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package org.smartregister.fhircore.engine.configuration

import android.content.Context
import android.database.SQLException
import android.os.Process
import ca.uhn.fhir.context.FhirContext
import com.google.android.fhir.FhirEngine
import com.google.android.fhir.db.ResourceNotFoundException
Expand Down Expand Up @@ -105,12 +104,6 @@ constructor(

private val jsonParser = fhirContext.newJsonParser()

init {
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
Process.killProcess(Process.myPid())
}
}

/**
* Retrieve configuration for the provided [ConfigType]. The JSON retrieved from [configsJsonMap]
* can be directly converted to a FHIR resource or hard coded custom model. The filtering assumes
Expand Down

0 comments on commit a00aa10

Please sign in to comment.