Hi,

I have seen this question asked before but can't see the answer on this
forum.

 

I have created the student record, student, and my own project main as
requested.

 

When attempting to run the code I get an error Exception in thread "main"
java.lang.NullPointerException

at the following line where I attempt to set a student name :
annaStudent.studentRecord.setName("Anna");

 

I think this may be something to do with how the Student class has been
created so if you need a copy of my student class please let me know.

 

Thanks for any help.

Brian

 

 


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to