Skip to content

Commit 164731a

Browse files
committed
impl
1 parent 91bf9d7 commit 164731a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jvmMain/kotlin/spp/protocol/marshall/ProtocolMarshaller.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import spp.protocol.view.LiveViewSubscription
4545

4646
/**
4747
* Used for marshalling and unmarshalling protocol messages.
48+
* Avoids using annotations and Jackson modules to keep probe-jvm dependencies simple.
4849
*
4950
* @since 0.2.1
5051
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)
@@ -322,7 +323,7 @@ object ProtocolMarshaller {
322323
@JvmStatic
323324
fun deserializeLogResult(value: JsonObject): LogResult {
324325
return LogResult(
325-
deserializeArtifactQualifiedName(value.getJsonObject("artifactQualifiedName")),
326+
value.getJsonObject("artifactQualifiedName")?.let { deserializeArtifactQualifiedName(it) },
326327
LogOrderType.valueOf(value.getString("orderType")),
327328
value.let {
328329
if (it.getValue("timestamp") is Number) {

0 commit comments

Comments
 (0)