Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed nil pointer exception on some rare case with multiple libs selection #477

Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 8, 2019

The closestmatch algorithm may return 'nil' if none of the candidate libraries has enough matching of the name. In this case just return the first library in alphanumeric ordering.

See arduino/Arduino#9242
See arduino/arduino-builder#345

The closestmatch algorithm may return 'nil' if none of the candidate
libraries has enough matching of the name. In this case just return the
first library in alphanumeric ordering.

See arduino/Arduino#9242
@cmaglie cmaglie added this to the 0.7.0 milestone Nov 8, 2019
@cmaglie cmaglie requested a review from facchinm November 8, 2019 11:25
@cmaglie cmaglie merged commit 4ef8138 into arduino:master Nov 8, 2019
@cmaglie cmaglie deleted the fix-multiple-libs-but-very-different-name branch November 8, 2019 11:40
cmaglie added a commit to arduino/arduino-builder that referenced this pull request Nov 8, 2019
- Allow loading of global user-define platform.txt
(arduino/arduino-cli#469)

- Fixed nil pointer exception on some rare case with
  multiple libs selection
(arduino/arduino-cli#477)

Fix #345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants