Script | Selection on merged row makes indesign crash
Hi everyone,
I'm facing a new problem with a script I was working on, it is supposed to read every cells I selected and let me apply a cell and paragraph style. It works fine unless my first selection is a merge row and the second one a row without any merge.
so selecting this two rows with this code makes indesign crash:
var mySelection = app.selection[0];
alert(mySelection.contents);
here's an example of my selection that crashes:

either it crashes, or it shows me once in a while that error:

I made an indd file example right here: https://www.dropbox.com/s/vwgx01jjgdd2c4n/row-issue.indd?dl=0
Thanks everyone,
Nicolas
