I'm getting a NullPointerException run I run my code. The data being passed isn't null. The only thing itself that is would be the ContactFileManager object. Since that class has no variables, I'm wondering how can I get past the exception.
I guess Knute was pointing out that the stack trace indicated the error message coming from:
However, the save method in the code you have posted shows up as lines 8-21 and line 40 is between the load and add methods.
But yes, you have identified the line which the null pointer exception occurs on.
Now, what on this line is null? fileMan, fileName or entries?
What change can you do to your code to make it a non null value?