• Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerError  RSS feed

 
Paul O'Neill
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
byte[] buf = new byte[1024];

I have this piece of code in one of my programs. There's no problem when I run it in WSAD but as soon as I run it out on a server contained in a jar file, I get a NullPointerException and it 'disconnects me from server'. Any ideas why this would be acting differently?

Thanks.
 
Pablo M�ller
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Could you post the whole stack trace?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!