Bug 1074413 - Add null check for Tab when handling potentially stale messages in JavaPanZoomController r=kats

This commit is contained in:
Mark Finkle
2014-09-29 23:39:34 -04:00
parent 85e8b27d48
commit 0ba29ffe90

View File

@@ -275,6 +275,11 @@ class JavaPanZoomController
} else if (MESSAGE_TOUCH_LISTENER.equals(event)) {
int tabId = message.getInt("tabID");
final Tab tab = Tabs.getInstance().getTab(tabId);
// Make sure we still have a Tab
if (tab == null) {
return;
}
tab.setHasTouchListeners(true);
mTarget.post(new Runnable() {
@Override