aspose file tools*
The moose likes JDBC and the fly likes java.lang.NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.NullPointerException" Watch "java.lang.NullPointerException" New topic
Author

java.lang.NullPointerException

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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: 4363
    
    8

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: 1321

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..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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: 4363
    
    8

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://aspose.com/file-tools
 
subject: java.lang.NullPointerException