WSDOT / wsdot-mobile-app

Source code for the WSDOT HTML5 mobile Web application
GNU General Public License v3.0
13 stars 4 forks source link

Ferry Schedules - Friday Harbor to Anacortes error message #14

Closed waynedyck closed 8 years ago

waynedyck commented 8 years ago

When viewing the Ferry Schedule for Friday Harbor to Anacortes an error is thrown which says,

uncaught:for input string null

Not sure why as the data feed looks fine.

waynedyck commented 8 years ago

Today the Port Townsend to Coupeville route is throwing the same error.

branflake2267 commented 8 years ago

I'm not getting an error for that route. (I just did a clean install on my new phone too)

waynedyck commented 8 years ago

Thanks for letting me know. It's hit and miss. I noticed this morning that the Friday Harbor to Anacortes route is throwing an error again as well. I will try and run the app on the desktop this morning and see if I can spot what is causing it.

waynedyck commented 8 years ago

Found the problem.

Sometimes we turn off the drive-up space indicator due to inaccurate data and a number of other reasons. In the data feed I wasn't checking the DisplayDriveUpSpace: false value and as a result was trying to to parse Integer values from DriveUpSpaceCount which is null in these cases.