修复:升级到 2.4.4 后,webhook 配置的 headers 空指针问题

This commit is contained in:
pppscn 2022-04-04 16:48:36 +08:00
parent f34b404adb
commit 85d944c91a

View File

@ -983,8 +983,11 @@ public class SenderActivity extends AppCompatActivity {
editTextWebNotifySecret.setText(webNotifySettingVo.getSecret());
radioGroupWebNotifyMethod.check(webNotifySettingVo.getWebNotifyMethodCheckId());
//set header
for (Map.Entry<String, String> header : webNotifySettingVo.getHeaders().entrySet()) {
addHeaderItemLinearLayout(headerItemMap, linearLayoutWebNotifyHeaders, header.getKey(), header.getValue());
Map<String, String> headers = webNotifySettingVo.getHeaders();
if (headers != null) {
for (Map.Entry<String, String> header : headers.entrySet()) {
addHeaderItemLinearLayout(headerItemMap, linearLayoutWebNotifyHeaders, header.getKey(), header.getValue());
}
}
}