File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
ide-common/src/main/kotlin/org/digma/intellij/plugin/scope
model/src/main/kotlin/org/digma/intellij/plugin/model/rest/navigation Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ private fun buildCodeLocationFromAssetNavigation(
5555 assetNavigation : AssetNavigationResponse ,
5656): CodeLocation {
5757
58- val codeDetailsList = buildFromCodeLocation(project, assetNavigation.codeLocation)
58+ val codeDetailsList = assetNavigation.codeLocation?.let {
59+ buildFromCodeLocation(project, it)
60+ } ? : listOf ()
61+
62+
5963 // if has code locations no need to continue
6064 if (codeDetailsList.isNotEmpty()) {
6165 return CodeLocation (codeDetailsList, listOf ())
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ data class AssetNavigationResponse
1111 " codeLocation" ,
1212 " relatedCodeLocations"
1313)
14- constructor (val codeLocation: AssetCodeLocation , val relatedCodeLocations: List <AssetRelatedCodeLocation >)
14+ constructor (val codeLocation: AssetCodeLocation ? , val relatedCodeLocations: List <AssetRelatedCodeLocation >)
1515
1616@JsonIgnoreProperties(ignoreUnknown = true )
1717data class AssetCodeLocation
You can’t perform that action at this time.
0 commit comments