I can't seem to nail down why I'm getting this null pointer exception. I've exhausted all of my brain cells attempting to get it going. Any help would be greatly appreciated!
Rob Spoor wrote:And which line is that in the above code? Because its line 71 is part of a comment.
I'm sorry in the SKUDictionaryR2 it's line 57. ----SKUList.add(foo5); ---- That is the code it doesn't like.
I can print the SKUList SKUDictionary.printSKUList(b); and it prints out what I've added, but when I have "SKUList.add(foo5); " In my code it gives the Null pointer.
I find it peculiar that SKUList is declared as static, but only initialized when the SKUDictionary constructor is run. That would suggest you haven't created any SKUDictionary objects yet.
30 seconds to difuse a loaf of bread ... here, use this tiny ad: