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 9d90188 commit 8a82dc0Copy full SHA for 8a82dc0
arduino/libraries/librariesresolver/cpp.go
@@ -107,7 +107,9 @@ func (resolver *Cpp) ResolveFor(header, architecture string) *libraries.Library
107
// If more than one library qualifies use the "closestmatch" algorithm to
108
// find the best matching one (instead of choosing it randomly)
109
winner := findLibraryWithNameBestDistance(header, found)
110
- logrus.WithField("lib", winner.Name).Info(" library with the best mathing name")
+ if winner != nil {
111
+ logrus.WithField("lib", winner.Name).Info(" library with the best mathing name")
112
+ }
113
return winner
114
}
115
0 commit comments