mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 794908 - Guard against potential NPE. r=cpeterson
This commit is contained in:
parent
8bada94b03
commit
33e42bc90b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user