CellTable#onBrowserEvent finds the TD element in which an event occurred, and then assumes that the TD has a parent TR and TBODY. This is normally a safe assumption because browsers only fire native events on elements that are attached to the page, which means a TR and TBODY is present. However, if a the user selects a new value in a select element inside the table, a change and mouseup event both fire, even if the table is refreshed on the change event.  In practice, if a user changes a value onchange and refreshes the table, the mouseup event will fire on the old TD, which is no longer connected to the table.  As a result... this patch checks that both the TR and TBODY are not null.

Review at http://gwt-code-reviews.appspot.com/695801

Review by: rjrjr@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8385 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 file changed