Fix error if voiceHints.list is empty
This commit is contained in:
parent
c1f68e99d0
commit
dda374073a
1 changed files with 5 additions and 1 deletions
|
@ -449,7 +449,11 @@ public final class OsmTrack
|
|||
.append ( " <desc>start</desc>\n <extensions>\n");
|
||||
|
||||
float rteTime;
|
||||
if(!voiceHints.list.isEmpty()){
|
||||
rteTime = voiceHints.list.get(0).getTime();
|
||||
}else{
|
||||
rteTime = 0;
|
||||
}
|
||||
|
||||
if ( rteTime != lastRteTime ) // add timing only if available
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue