Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : PongGame Errorcode: ArrayIndexOutOfBoundsException 1.

$
0
0


probably in this case the var input is empty after line 88 and so data is empty

Check in line 94 whether data.length is >1

  1. if (data.length > 1) {
  2.     ellipse(data[0], data[1], data[2], data[3]);
  3.     print("OK with " + input);
  4. }
  5. else
  6. {
  7.     print("empty with "+input+"<");
  8. }

instead just draw the old ellipse

Greetings, Chrisir    

If you need an answer, please send me a personal message since this forum doesn't notify.

Viewing all articles
Browse latest Browse all 1768

Trending Articles