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

OpenOrd settings imported from project cause NPE #2686

Closed
mbastian opened this issue Nov 6, 2022 · 0 comments
Closed

OpenOrd settings imported from project cause NPE #2686

mbastian opened this issue Nov 6, 2022 · 0 comments
Assignees
Milestone

Comments

@mbastian
Copy link
Member

mbastian commented Nov 6, 2022

Expected Behavior

Layout properties are imported fine from Project.

Current Behavior

[INFO] java.lang.NullPointerException
[INFO] 	at org.gephi.layout.plugin.openord.OpenOrdLayout.setSimmerStage(OpenOrdLayout.java:461)
[INFO] Caused: java.lang.reflect.InvocationTargetException
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[INFO] 	at org.openide.nodes.PropertySupport$Reflection.setValue(PropertySupport.java:392)
[INFO] [catch] at org.gephi.layout.LayoutModelImpl.loadProperties(LayoutModelImpl.java:225)
[INFO] 	at org.gephi.layout.LayoutModelImpl.setSelectedLayout(LayoutModelImpl.java:123)
[INFO] 	at org.gephi.layout.LayoutModelImpl.readXML(LayoutModelImpl.java:299)
[INFO] 	at org.gephi.layout.LayoutModelPersistenceProvider.readXML(LayoutModelPersistenceProvider.java:79)
[INFO] 	at org.gephi.project.io.LoadTask.readWorkspaceChildrenXML(LoadTask.java:327)
[INFO] 	at org.gephi.project.io.LoadTask.run(LoadTask.java:135)

Steps to Reproduce

  1. Create project and select OpenOrd as layout
  2. Tweak some settings
  3. Save project and reopen it
  4. Exception during import

Context

Layout properties are saved as part of the project file.

Your Environment

  • Version used: Gephi 0.9.7
  • Operating System: Mac OS
@mbastian mbastian added this to the 0.10.0 milestone Nov 6, 2022
@mbastian mbastian self-assigned this Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant