Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException Just Does Not Make Sense

 
Natalie Kopple
Ranch Hand
Posts: 325
  • 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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic