-
Notifications
You must be signed in to change notification settings - Fork 735
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
[Bug]: java.lang.NullPointerException #40354
Comments
A resolution: public function anagrams(string word, string[] candidates) returns string[] {
var lcWord = word.toLowerAscii();
var key = keyOf(lcWord);
return from string candidate in candidates
let string lcCand = candidate.toLowerAscii()
where lcCand != lcWord && key == keyOf(lcCand)
select candidate;
}
function keyOf(string w) returns int[] => w.toCodePointInts().sort(); |
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
Sorry what? That I found a workaround for a language bug makes the first attempt an "engineering mistake"? My mistake or yours? Can you point me to some place in the documentation that would tell me the initial version is wrong? |
Hey @glennj The mistake is from our side. :-). Your initial code should have worked properly, but due to a mistake (Probably we have not covered your use-case in the initial testing) done from our side, you encountered this issue. Therefore we marked it as a mistake from our side and the label is only used to categorised them as an engineering mistake done from our side. We closed the issue as we fixed the issue with this pull request: #40529 I am sorry for the confusion. |
Thank you for your gracious reply. I overreacted to the ticket getting closed. |
Description
Steps to Reproduce
https://exercism.org/tracks/ballerina/exercises/anagram
code
Affected Version(s)
OS, DB, other environment details and versions
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: