aspose file tools
The moose likes JDBC and the fly likes java.lang.NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "java.lang.NullPointerException" Watch "java.lang.NullPointerException" New topic
Author

java.lang.NullPointerException

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Hello,



I am calling this method like:


but sometime its throw the following NPE:


Thanks & best regards
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3793
    
    1

So which line does it throw it on? I can see it's line 710 in the source file - how does that correspond to the code you've posted?
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

Its time for debugging..

as Exception already point you the method.


use System.out.println before and after inside isCvExist method under if statement or use IDE debugger, you can use Netbeans for it.


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Matthew Brown wrote:So which line does it throw it on? I can see it's line 710 in the source file - how does that correspond to the code you've posted?


I am thankful to you Metthew.
email = email.toLowerCase(); was on line 710 that was coming NULL I fixed and now its running fine

Thanks again from the bottom of my heart

Best regards
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3793
    
    1

You're welcome! I didn't really do anything, though - just suggested you look more closely at the error the computer was giving you. You solved the problem.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: java.lang.NullPointerException
 
Similar Threads
java.lang.IllegalStateException
java.io.FileNotFoundException
Comet and PushServlet
authenticating website users with mysql dbase
NumberFormatException: For input string: "null"