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