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

Null network in diagram style provider #181

Open
flo-dup opened this issue Oct 20, 2020 · 0 comments
Open

Null network in diagram style provider #181

flo-dup opened this issue Oct 20, 2020 · 0 comments

Comments

@flo-dup
Copy link
Contributor

flo-dup commented Oct 20, 2020

  • Do you want to request a feature or report a bug?
    Bug

  • What is the current behavior?
    Network can be null in AbstractBaseVoltageDiagramStyleProvider, leading to NullPointerExceptions.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

    • Provide a null network in TopologicalStyleProvider or NominalVoltageDiagramStyleProvider
    • Do not disable highlightLineState in LayoutParameters
    • Enable addNodesInfos: LayoutParameters.setAddNodesInfos(true)
  • What is the expected behavior?
    No NPE. Or exception when creating DiagramStyleProvider, but I think some users which don't handle a network still need a NominalVoltageDiagramStyleProvider (see this spectrum question).

  • What is the motivation / use case for changing the behavior?
    Avoid NPE.

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