File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/kotlin/spp/protocol/instrument Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ data class LiveBreakpoint(
5959 applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
6060 applied = json.getBoolean(" applied" ) ? : false ,
6161 pending = json.getBoolean(" pending" ) ? : false ,
62- throttle = InstrumentThrottle ( json.getJsonObject(" throttle" )) ,
63- meta = json.getJsonObject(" meta" ).associate { it.key to it.value }
62+ throttle = json.getJsonObject(" throttle" )?. let { InstrumentThrottle (it) } ? : InstrumentThrottle . DEFAULT ,
63+ meta = json.getJsonObject(" meta" )? .associate { it.key to it.value } ? : emptyMap()
6464 )
6565
6666 override fun toJson (): JsonObject {
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ data class LiveLog(
5656 applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
5757 applied = json.getBoolean(" applied" ) ? : false ,
5858 pending = json.getBoolean(" pending" ) ? : false ,
59- throttle = InstrumentThrottle ( json.getJsonObject(" throttle" )) ,
60- meta = json.getJsonObject(" meta" ).associate { it.key to it.value }
59+ throttle = json.getJsonObject(" throttle" )?. let { InstrumentThrottle (it) } ? : InstrumentThrottle . DEFAULT ,
60+ meta = json.getJsonObject(" meta" )? .associate { it.key to it.value } ? : emptyMap()
6161 )
6262
6363 override fun toJson (): JsonObject {
You can’t perform that action at this time.
0 commit comments