Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

array problem

 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made my own class called "NameLocation" that can store 2 String variables via a
public void setVars(String,String) method.
If I say:

the NameLocation class does what its supposed to do and everything is happy
but, if I say:

I am eagerly awaited by my console with a NullPointerException
Help! What am I overlooking??? (love those "Graemlins")
 
chi Lin
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are missing something in between like

 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are right...
Thank You!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic