Skip to content

Commit e60bb5e

Browse files
committed
HIKOM is not required
1 parent 35719a4 commit e60bb5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/FinTSClient.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ var FinTSClient = function (in_blz,in_kunden_id,in_pin,bankenlist) {
329329
me.sys_id = recvMsg.selectSegByNameAndBelongTo("HISYN",syn)[0].getEl(1);
330330
}
331331
// 3. Möglicherweise neue kommunikationsdaten
332-
var neu_url = Helper.convertFromToJSText(recvMsg.selectSegByName("HIKOM")[0].getEl(3).getEl(2));
332+
var HIKOM = recvMsg.selectSegByName("HIKOM");
333+
+ HIKOM = HIKOM.length>0?HIKOM[0]:null;
334+
+ var neu_url = HIKOM==null?(me.bpd.url):(Helper.convertFromToJSText(recvMsg.selectSegByName("HIKOM")[0].getEl(3).getEl(2)));
333335
var has_neu_url = false;
334336
if(neu_url!=me.bpd.url){
335337
has_neu_url = true;
@@ -677,4 +679,4 @@ var FinTSClient = function (in_blz,in_kunden_id,in_pin,bankenlist) {
677679

678680
};
679681

680-
module.exports = FinTSClient;
682+
module.exports = FinTSClient;

0 commit comments

Comments
 (0)