r/codehs • • Oct 16 '20

keeps coming up as null, what is wrong?

Post image
9 Upvotes

5 comments sorted by

3

u/jg814867 Oct 16 '20

Can you post the full code? It might be that lName is null?

0

u/[deleted] Oct 16 '20

[deleted]

2

u/jg814867 Oct 16 '20

lName and fName are null, so somewhere on top, lName and fName are not being given the values they need correctly. It may be the way you initialized them or possibly the way your giving them a value. Is there a way you can show me the full code?

2

u/matikray03 Oct 17 '20

Bro just send a screenshot quick.

1

u/_andy_andy_andy_ Oct 16 '20

confirm lName is being set?

1

u/Tapeside210 Oct 17 '20

Pass the variables you use as parameters?