#24 exception in GPSDisplay

closed-fixed
5
2009-05-29
2009-05-29
Anonymous
No

see snapshot in attachment

Discussion

  • cyrille rosay

    cyrille rosay - 2009-05-29
    • milestone: 897503 --> version 0.9.1 (beta)
    • status: open --> open-accepted
     
  • cyrille rosay

    cyrille rosay - 2009-05-29

    This bug is generated when a GPS RMC message is not complete or invalid (the longitude and latitude are empty).
    The plugin tries to split a string based on "." to check the number of decimals and to determine the precision of the GPS, and tries to access immediatly the result, without checking if the string nis empty or not.
    When no decimal is present this generate an exception.
    Only the plugin that displays the precision is affected.

     
  • cyrille rosay

    cyrille rosay - 2009-05-29
    • assigned_to: nobody --> crosay
     
  • cyrille rosay

    cyrille rosay - 2009-05-29

    silmple correction. No task created. the modification consist in checking the length of the array of string before accessing the 1st cell of the array.
    in case the array is empty (no decimal found) then nbdigits is set to 0.

     
  • cyrille rosay

    cyrille rosay - 2009-05-29
    • status: open-accepted --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks