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

NullPointerException is thrown when trying to integrate kinetic laws into model while the node "kinetic law" is selected in the right tree in the GUI #16

Open
eikept opened this issue Jan 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@eikept
Copy link
Member

eikept commented Jan 12, 2021

When trying to integrate newly kinetic laws after the creation with squeezer or the search in SABIO-RK a NullPointerException is thrown if the node "Kinetic Law" is selected in the right tree in the GUI. The source of this issue is that this node has no parent node (here reaction) if selected directly from the path (via getLastPathComponent() or manually). Currently there is a workaround implemented which selects the second to last node of the path instead and then searches the children of this node for a node with the same name as the last node and then selecting the node which was found. If selected this way, the node actually contains the parent node but obviously this is not a very nice way to select the last node. Therefore the goal would be to identify the reason as for why the node has no parent when selected directly in this special case and then fix it.

@eikept eikept added the bug Something isn't working label Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant