java.lang.NullPointerExceptions in case of access to array from non-array context.