Please explain. What does the getName() method return? An empty String? Like ""?
Are you still getting the NullPointerException?
Type: Posts; User: Norm
Please explain. What does the getName() method return? An empty String? Like ""?
Are you still getting the NullPointerException?
I wasn't asking what the values of those variables should be or what they could be.
I was asking what their values were just before the exception happened. If one is null, that will cause the...
What are the values of:
name
and
staff[i]
There is a variable with a null value on line 33. Look at line 33 in the your source and see what variable is null. Then backtrack in the code to see why that variable does not have a valid value....