What variable has the null value? why doesn't the variable have a valid value?
Post the full text of the error message. It shows the line number where the error occurred.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Look at line 16 in the program. What variable on that line has a null value? Then backtrack in the code to find why that variable does not have a valid value. If you can't see what variable has a null value, add a println just before line 16 that prints the values of all the variables on line 16.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16