mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
Bug 752172 - (Part 2) Protect against null selected tab in SiteIdentityPopup. r=mfinkle
This commit is contained in:
parent
027ab6d4f5
commit
a97bae2ba6
@ -80,7 +80,13 @@ public class SiteIdentityPopup extends PopupWindow {
|
||||
}
|
||||
|
||||
public void show(int leftMargin) {
|
||||
JSONObject identityData = Tabs.getInstance().getSelectedTab().getIdentityData();
|
||||
Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
||||
if (selectedTab == null) {
|
||||
Log.e(LOGTAG, "Selected tab is null");
|
||||
return;
|
||||
}
|
||||
|
||||
JSONObject identityData = selectedTab.getIdentityData();
|
||||
if (identityData == null) {
|
||||
Log.e(LOGTAG, "Tab has no identity data");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user