Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Files  RSS feed

 
Alan Jackson
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ive got a small client/server running, which asks for a filename, and then passes the filename to the server. If i hard code the filename it works fine, but the second I use keyboard.readLine() I get several errors, including:

junit.framework.AssertionFailedError: java.lang.NullPointerException
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to post the lines of code that are causing the error... Looking at the exception, it looks like a null value is being passed into a JUnit assertion statement. But without any code, I have no idea what that null value would be.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!