Add null check for tipping bottomsheet
This commit is contained in:
+6
-2
@@ -306,8 +306,12 @@ public class RewardsTippingBannerFragment extends Fragment implements BraveRewar
|
||||
public void sendTipButtonClick() {
|
||||
View sendTipButton = mContentView.findViewById(R.id.send_tip_button);
|
||||
sendTipButton.setOnClickListener((v) -> {
|
||||
RewardsTippingPanelBottomsheet.showTippingPanelBottomSheet(
|
||||
(AppCompatActivity) mActivity, mCurrentTabId, mBannerInfo.getWeb3Url());
|
||||
if (mBannerInfo == null) return;
|
||||
String web3Url = mBannerInfo.getWeb3Url();
|
||||
if (!TextUtils.isEmpty(web3Url)) {
|
||||
RewardsTippingPanelBottomsheet.showTippingPanelBottomSheet(
|
||||
(AppCompatActivity) mActivity, mCurrentTabId, web3Url);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user