NPE bugs in MaximumProductOfWordLengths.java and RemoveDuplicatesFromSortedArray.java
Hi,
I have found two bugs in MaximumProductOfWordLengths.java (leetcode/bit-manipulation/MaximumProductOfWordLengths.java) and RemoveDuplicatesFromSortedArray.java(leetcode/two-pointers/RemoveDuplicatesFromSortedArray.java).
In MaximumProductOfWordLengths.java line 20 if(words.length == 0 || words == null) if words is null, words.length will NPE
Similarly in RemoveDuplicatesFromSortedArray.java line 12 if(nums.length == 0 || nums == null) if nums is null then nums.length will NPE.
I know they are minor issues. I would still be good if you can fix them. Thanks a lot!
Hi, can anyone please confirm and fix those bugs? Thanks so much!
You need to create a pull request so the author can merge it directly.
Hi, Can I work on this issue?