- Fixed navigation and selection issue

- added some null checking
- corrected direction of releations
This commit is contained in:
ejentzsx
2015-02-11 09:32:46 +01:00
parent 54fb59db04
commit af1f21cac9
9 changed files with 134 additions and 78 deletions

View File

@ -142,9 +142,9 @@ public class WaveformDb extends HierNode implements IWaveformDb {
private void updateMaxTime(IWaveform<?> waveform) {
Long last=0L;
if(waveform instanceof ITxStream<?>)
if(waveform instanceof ITxStream<?> && ((ITxStream<?>)waveform).getEvents().lastEntry()!=null)
last=((ITxStream<?>)waveform).getEvents().lastEntry().getKey();
else if(waveform instanceof ISignal<?>)
else if(waveform instanceof ISignal<?> && ((ISignal<?>)waveform).getEvents().lastEntry()!=null)
last=((ISignal<?>)waveform).getEvents().lastEntry().getKey();
if(last>maxTime)
maxTime=last;