Commit b007a5916dfd38dde964d352257e21bec4d366b0

Authored by Adhidarma Hadiwinoto
1 parent 7bf367fb66
Exists in master

penanganan missing rc

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

partner-simplepay.js
... ... @@ -199,7 +199,7 @@ function _responseBodyHandler(responseBody, task) {
199 199  
200 200 function getPartnerRCFromDiagMessage(diag) {
201 201 let matches = diag.match(/^\s*\[(.*)\]/);
202   - if (matches.length < 2) {
  202 + if (!matches || matches.length < 2) {
203 203 return;
204 204 }
205 205