Skip to content

Commit bc6c836

Browse files
committed
fix: npe
1 parent bd567ee commit bc6c836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/spp/protocol/instrument/LiveLog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data class LiveLog(
4747

4848
constructor(json: JsonObject) : this(
4949
logFormat = json.getString("logFormat"),
50-
logArguments = json.getJsonArray("logArguments").map { it.toString() },
50+
logArguments = json.getJsonArray("logArguments")?.map { it.toString() } ?: emptyList(),
5151
location = LiveSourceLocation(json.getJsonObject("location")),
5252
condition = json.getString("condition"),
5353
expiresAt = json.getLong("expiresAt"),

0 commit comments

Comments
 (0)