SmartGWT 13.0
Sometimes the application crashes with such an error. I have a feeling that setFieldSearchOperator() changes the column widths and altering the list of currently visible columns.
The problem occurs when fetching data for the grid with the visible filter bar enabled and a larger number of columns that do not fit on the screen.
Unfortunately, it doesn't happen always. I couldn't build a short code snippet to reproduce the error.
As a result, the size of the array over which this loop iterates changes.
You can see that Items is a 13-element array, while previously the variable length was set to 15.
I debugged it deeper, and the call stack responsible for this phenomenon is as follows.
Here, two columns are being removed from the list of visible columns, which later causes an error:
The proposed fix for the error is to create a copy of the array (line 11: const tmpItems =items;). It works.
Sometimes the application crashes with such an error. I have a feeling that setFieldSearchOperator() changes the column widths and altering the list of currently visible columns.
The problem occurs when fetching data for the grid with the visible filter bar enabled and a larger number of columns that do not fit on the screen.
Unfortunately, it doesn't happen always. I couldn't build a short code snippet to reproduce the error.
As a result, the size of the array over which this loop iterates changes.
You can see that Items is a 13-element array, while previously the variable length was set to 15.
I debugged it deeper, and the call stack responsible for this phenomenon is as follows.
Here, two columns are being removed from the list of visible columns, which later causes an error:
The proposed fix for the error is to create a copy of the array (line 11: const tmpItems =items;). It works.
Comment