Results 1 to 2 of 2
Thread: NullPointer help
- 04-01-2011, 11:31 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 1
- Rep Power
- 0
- 04-02-2011, 02:35 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Use some println's to print out the values of some variables - see which one is null then backtrack to see where it should be instantiated. The exception tells you where the problem lies (in the authenticate method - although the line numbers don't match up to your code at all) - is service ever properly instantiated (it is passed as a reference and not available to assess in the code you posted)?
Similar Threads
-
NullPointer Exeption, but why?
By warchieflll in forum New To JavaReplies: 10Last Post: 12-09-2010, 04:34 PM -
Nullpointer Exception???
By kipcorn91 in forum AWT / SwingReplies: 5Last Post: 10-28-2010, 11:19 PM -
Nullpointer error
By teppel in forum New To JavaReplies: 0Last Post: 07-10-2010, 08:38 PM -
NullPointer exception
By bdario1 in forum New To JavaReplies: 15Last Post: 03-17-2010, 04:44 AM -
NullPointer Exception
By Preethi in forum New To JavaReplies: 8Last Post: 02-06-2008, 03:40 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks