A quirky problem with string arrays and Null Pointer Exception

your error was simple

in setup you had this with String[] in front. Bad. That made both arrays local, meaning known in setup() only, not in draw().

This is the correct form in setup()

  french = new String[words.length+1];
  english = new String[words.length+1];
2 Likes