Skip to content
Snippets Groups Projects
Commit 6a4802c8 authored by John Carlson's avatar John Carlson
Browse files

Handle null dates without crashing

parent d1485486
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,7 @@ object MoshiProvider {
val moshi: Moshi by lazy {
Moshi.Builder()
.add(DashDateAdapter())
.add(Date::class.java, Rfc3339DateJsonAdapter())
.add(Date::class.java, Rfc3339DateJsonAdapter().nullSafe())
.build()
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment