• Post Reply Bookmark Topic Watch Topic
  • New Topic

Concating byte arrays generates NullPointerException  RSS feed

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For some reason, line 3 of the below code generates an error. Why? How many I fix it?

Thanks,
John Price



EDIT - Here is the error output :
 
Rob Spoor
Sheriff
Posts: 21050
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously either byteSong or byteMessage is null.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!