Skip to content

Commit

Permalink
fix: Import > Constraint violation when empty code reference (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Aug 22, 2024
1 parent c0683cc commit f949d73
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ data class FileProcessorContext(
path: String,
line: Long? = null,
) {
if (path.isEmpty()) {
return
}
val keyMeta = getOrCreateKeyMeta(key)
keyMeta.addCodeReference {
this.path = path
Expand Down

0 comments on commit f949d73

Please sign in to comment.