sometimes realtime information is missing even if id realtime is set to "1" for certain departures. This crashes the app. #2

Closed
opened 2023-06-20 18:22:21 +02:00 by migration-script · 0 comments

Summary

Sometimes certain departures contain <realtime>1</realtime>, but the rt tag is missing. This makes the app crash.

Description

Expected behaviour

The app should display the panned departure time, if rt info is missing.

Actual behaviour

The app crashes.

Example XML

<dp>
<n>Regensburg Universität</n>
<realtime>1</realtime>
<dt>
<da>26.5.2017</da>
<t>17:49</t>
</dt>
<st>
<da>20170526</da>
<t>1749</t>
</st>
<m>
<n>RVV-Bus-Linie</n>
<nu>6</nu>
<ty>5</ty>
<co>3</co>
<des>Wernerwerkstr.</des>
<dy>-9999</dy>
<dv>
<branch>11</branch>
<li>006</li>
<su>A</su>
<pr>6aa</pr>
<dct>R</dct>
<ne>rvv</ne>
<tk>308</tk>
<stateless>308</stateless>
</dv>
</m>
<r>
<id>4014080</id>
<a>0</a>
<pl>Bstg. E</pl>
</r>
<c>12092352.84663,48998735.63537</c>
<ns/>
<nx/>
</dp>
## Summary ## Sometimes certain departures contain ```<realtime>1</realtime>```, but the ```rt``` tag is missing. This makes the app crash. ## Description ## ### Expected behaviour ### The app should display the panned departure time, if rt info is missing. ### Actual behaviour ### The app crashes. ## Example XML ## ``` <dp> <n>Regensburg Universität</n> <realtime>1</realtime> <dt> <da>26.5.2017</da> <t>17:49</t> </dt> <st> <da>20170526</da> <t>1749</t> </st> <m> <n>RVV-Bus-Linie</n> <nu>6</nu> <ty>5</ty> <co>3</co> <des>Wernerwerkstr.</des> <dy>-9999</dy> <dv> <branch>11</branch> <li>006</li> <su>A</su> <pr>6aa</pr> <dct>R</dct> <ne>rvv</ne> <tk>308</tk> <stateless>308</stateless> </dv> </m> <r> <id>4014080</id> <a>0</a> <pl>Bstg. E</pl> </r> <c>12092352.84663,48998735.63537</c> <ns/> <nx/> </dp> ```
saluu was assigned by migration-script 2023-06-20 18:22:21 +02:00
Sign in to join this conversation.
No labels
doc
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fsimphy/bayernfahrplan#2
No description provided.