ptanov / sofia-public-transport-navigator

This Android application helps people in choosing the bus station on which to wait. In real time it gives information about the estimated time of arrival for the selected station.
11 stars 5 forks source link

Exception while renaming favorite bus stop added by bus id (when ID is unknown) #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Nikolai Grigorow, 10x

Unnamed/unknown (added by id) bus stop in favorites, then try to rename

java.lang.IllegalArgumentException: Station 2661 is not in favorities 
(newLabel: Unnamed - tap and hold to rename)
at 
eu.tanov.android.sptn.favorities.FavoritiesService.rename(FavoritiesService.java
:120)
at 
eu.tanov.android.sptn.FavoritiesActivity$2.onClick(FavoritiesActivity.java:132)
at 
com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertContro
ller.java:167)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by 1.Pla...@gmail.com on 8 Mar 2013 at 11:37

GoogleCodeExporter commented 9 years ago
When label of bus stop is null while adding - it is explicitly set to ""

Original comment by 1.Pla...@gmail.com on 8 Mar 2013 at 6:45