- time = [NSString stringWithFormat:@"%@: %@ / %@",
- NSLocalizedString(@"time", @"Time"),
- [[self currentRemote] currentSongElapsed],
- [[self currentRemote] currentSongLength]];
- [[StatusWindowController sharedController] updateTime:time];
+ length = [[self currentRemote] currentSongLength];
+ if (length) {
+ time = [NSString stringWithFormat:@"%@: %@ / %@",
+ NSLocalizedString(@"time", @"Time"),
+ [[self currentRemote] currentSongElapsed],
+ length];
+ [[StatusWindowController sharedController] updateTime:time];
+ }