commons-math
commons-math copied to clipboard
Missing case in exception handling
We are experimenting with a static analysis tool and it suggested this change to make the exception handling more robust. The problem it reports is that f[0] is accessed in line 75, but in line 84 you actually check if f is empty and raise an exception.