Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a net has no transitions, will throw exception #11

Open
jbush001 opened this issue Mar 20, 2017 · 1 comment
Open

If a net has no transitions, will throw exception #11

jbush001 opened this issue Mar 20, 2017 · 1 comment

Comments

@jbush001
Copy link
Owner

Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
	at waveview.TransitionVector$TransitionVectorIterator.next(TransitionVector.java:93)
	at waveview.TransitionVector$TransitionVectorIterator.next(TransitionVector.java:75)
	at waveview.NetNameList$NetNameRenderer.paintComponent(NetNameList.java:99)

It assumes there is at least one transition.

            Transition t = fTraceDataModel.findTransition(netId,
                           fTraceDisplayModel.getCursorPosition()).next();
            g.drawString(fTraceDisplayModel.getValueFormatter(fCurrentNet).format(t),
                         1, fValueBaseline);
@jbush001
Copy link
Owner Author

I only caused this with a VCD file I hand created. Most simulators will put at least one transition to set the initial state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant