mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-04 06:00:11 +00:00
修复:升级到 2.4.4 后,webhook 配置的 headers 空指针问题
This commit is contained in:
parent
f34b404adb
commit
85d944c91a
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user