Bug 1250981 - Add null check to mozTabAccessible value r=davidb

This commit is contained in:
Lorien Hu 2016-02-24 11:14:04 -08:00
parent a121514dce
commit 20766586bc

View File

@ -251,12 +251,14 @@ enum CheckboxValue {
{
mozAccessible* nativeAcc = nil;
if (AccessibleWrap* accWrap = [self getGeckoAccessible]) {
Accessible* accTab = accWrap->GetSelectedItem(0);
if (Accessible* accTab = accWrap->GetSelectedItem(0)) {
accTab->GetNativeInterface((void**)&nativeAcc);
}
} else if (ProxyAccessible* proxy = [self getProxyAccessible]) {
ProxyAccessible* proxyTab = proxy->GetSelectedItem(0);
if (ProxyAccessible* proxyTab = proxy->GetSelectedItem(0)) {
nativeAcc = GetNativeFromProxy(proxyTab);
}
}
return nativeAcc;
}