aspose file tools*
The moose likes Testing and the fly likes NullPointerException Just Does Not Make Sense Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "NullPointerException Just Does Not Make Sense" Watch "NullPointerException Just Does Not Make Sense" New topic
Author

NullPointerException Just Does Not Make Sense

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I am breaking my head to figure out this problem.

My Java source code works fine and the code simply tries to read a JAR file from a folder. And the Java source code has no problem to read that JAR file from the specified folder.

Thereafter, I ran a Junit test. When the Junit went to that segment of code, I got NullPointerException (The exact location is the start of the looping: for (.....) { ). Can anybody point me to a direction to make my head sober? Thank you.

Here is the Java source code:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException Just Does Not Make Sense