We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603dd71 commit e7534e1Copy full SHA for e7534e1
src/main/kotlin/spp/protocol/instrument/location/LiveSourceLocation.kt
@@ -42,7 +42,14 @@ data class LiveSourceLocation @JvmOverloads constructor(
42
constructor(json: JsonObject) : this(
43
source = json.getString("source"),
44
line = json.getInteger("line") ?: -1,
45
- service = json.getJsonObject("service")?.let { Service(it) },
+ service = json.getValue("service")?.let {
46
+ if (it is JsonObject) {
47
+ Service(it)
48
+ } else {
49
+ //todo: remove v0.8.0+
50
+ Service.fromName(it.toString())
51
+ }
52
+ },
53
serviceInstance = json.getString("serviceInstance"),
54
commitId = json.getString("commitId"),
55
fileChecksum = json.getString("fileChecksum"),
0 commit comments