A null pointer exception?
Hi! ! (^_^) Im sort of new to java and recently got an error that i have no idea how to fix. Below is a simplified version of the code I am trying to print out, instead of doing what I wanted it to do... I got a null pointer exception....ugh (@_@) ! . The weird thing is that I did the same thing earlier with : myLeagues[i].getAge() and it worked perfectly, does anyone have some ideas of what might be going wrong or what I can do to fix it. Thanks....