This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring 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