Last modified: 2014-01-16 22:31:09 UTC
1. Create a document with just a block image [[File:Foo.jpg|thumb]] on one line 2. Edit the document and try to place the cursor in the second slug (after the image) 3. An exception is thrown (getNearestContentOffset(selection.end) returns -1 and this is fed into getAnnotationsFromOffset)
Change 107134 had a related patch set uploaded by Esanders: Check for valid offset when calculating insertion annotations https://gerrit.wikimedia.org/r/107134
Change 107134 merged by jenkins-bot: Check for valid offset when calculating insertion annotations https://gerrit.wikimedia.org/r/107134
verified the fix in test2