mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
AbstractHafasClientInterfaceProvider: Handle missing 'code' in 'remL' entry.
This commit is contained in:
parent
5056548975
commit
b370effeae
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
|
||||
for (int i = 0; i < remList.length(); i++) {
|
||||
final JSONObject rem = remList.getJSONObject(i);
|
||||
final String code = rem.getString("code");
|
||||
final String code = rem.optString("code", null);
|
||||
final String txtS = rem.optString("txtS", null);
|
||||
final String txtN = rem.optString("txtN", null);
|
||||
remarks.add(new String[] { code, txtS != null ? txtS : txtN });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue