Which reference is undefined here?

Have you filled both arrays completely? I.e., are any indices still undef from your initialization?

1 Like