Chrisir,
Thanks for taking the time to help try to resolve this issue. I should have mentioned in my original post that I had used a “tab” to space the entries in the vocab.txt file (Sorry - obviously the TAB wasn’t apparent when I attached a copy of that file to the end of the sketch.)
I used your suggestion, removed the tab in the txt file and replaced it with a space and the sketch executes correctly ONLY if the line in “draw” shown below is not active. That is what occurred with the tab separation, so the error does not seem to be associated with the split operation.
If the following line in draw
// for(int i=0; i < words.length+1; i++){println(i," ",french[i]," ",english[i]);}
is “commented out” as shown above - success, but if I activate that line in draw the NullPointerException occurs.
Were you able to successfully run the sketch with that line active in draw?
That is the “quirky” part. That line executes correctly in setup but fails in draw … and that make no sense to me.
Again I appreciate your comment and would like to know if you were able to run this successfully with that line active in draw?