File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException Just Does Not Make Sense

Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic