arrays - Java- 'if' statement gets ignored? -


my 'if' statement getting ignored...
wrong code?

the code:

private observablelist<string[]> fnldata; . .  (int = 0; < fnldata.size(); i++){     if (fnldata.get(i)!=null || fnldata.get(i)[indexc]!=null || fnldata.get(i).length > indexc+1) {        fnldata.get(i)[indexc] = null;     } } 

fnldata.get(0)(=stringarray) has 1 element in it.
@ first loop (when i=0) should skip 'if'
somehow gets in , fnldata.get(i)[indexc] = null;
because dont have 2nd element in array, error arrayindexoutofboundsexception , invocationtargetexception

enter image description here

the condition true if fnldata.get(0)!=null true, claim is.

if require conditions true, use and, not or :

if (fnldata.get(i)!=null && fnldata.get(i)[indexc]!=null && fnldata.get(i).length > indexc+1) 

Comments