Bug 794908 - Guard against potential NPE. r=cpeterson

This commit is contained in:
Kartikaya Gupta 2012-09-27 12:37:08 -04:00
parent 8bada94b03
commit 33e42bc90b

View File

@ -304,6 +304,9 @@ public final class ScreenshotHandler implements Runnable {
case SCREENSHOT_CHECKERBOARD:
{
ScreenshotHandler handler = getInstance();
if (handler == null) {
break;
}
if (Tabs.getInstance().getSelectedTab().getId() == tabId) {
PendingScreenshot current;
synchronized (handler.mPendingScreenshots) {