Skip to content

Commit

Permalink
Fix a typo that led to nil dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Sep 12, 2024
1 parent 62afc3c commit 25422a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/development/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func (r *Resolver) ReferenceAtPosition(source input.Source, position input.Posit
def := ts.Namespace()

// NOTE: zeroes are fine here to mean "unknown"
lineNumber, _ := safecast.ToInt(relation.SourcePosition.ZeroIndexedLineNumber)
columnPosition, _ := safecast.ToInt(relation.SourcePosition.ZeroIndexedColumnPosition)
lineNumber, _ := safecast.ToInt(def.SourcePosition.ZeroIndexedLineNumber)
columnPosition, _ := safecast.ToInt(def.SourcePosition.ZeroIndexedColumnPosition)

defPosition := input.Position{
LineNumber: lineNumber,
Expand Down

0 comments on commit 25422a8

Please sign in to comment.