Retrofit Crash Fix Android 12+

Employer not named by the sourceRemote

Full Stack

Apply on the company’s site

Frontier is not the employer and does not collect applications.

About this role

Java, Mobile App Development, Android, C# Programming, JSON, API Development, API Integration · I need a seasoned Android developer who can dive straight into a Kotlin MVVM code-base that relies on Retrofit and Coroutines and stop a stubborn crash that only appears on Android 12 and newer. As soon as the user opens the Profile screen, a NullPointerException fires while Gson (or Moshi, depending on the flavour you choose) tries to deserialize the JSON payload. Older APIs behave fine, so the root cause is most likely missing null-safety on a few fields combined with an unhandled coroutine exception that bubbles up in Android 12+.

Here is what I expect:

• Inspect the Profile-related module I’ll share (or the reproducible repo) and pinpoint every unsafe field or mapper involved in the API response. • Refactor the data classes so they cope gracefully with absent or future-extra fields, leveraging Kotlin’s nullability features and @SerializedName (or Json annotations) where needed. • Introduce solid coroutine error handling inside the ProfileViewModel—SupervisorJob, try/catch, or whichever approach keeps the UI responsive without masking real problems. • Build and test against API 33 emulators (and at least one physical device if available) until navigation to the Profile s