Attempt to Link in SceneComposer results in "NullPointerException"
Steps to reproduce:
- Create a new scene based on "empty jME3 scene" template.
- Hit "Edit in Scene Composer". It opens an empty view with coordination axis
- Hit "File -> Link in Scene Composer"
Actual Result: NullPointerException thrown:
Notes:
After step 1 I'm unable to open a scene. E.g. when I click on scene nothing happens, hence I try "Edit in Scene Composer"
My environment details as per jmonkey about window:
Product Version: jMonkeyEngine SDK v3.3.0-stable
Java: 11.0.6; OpenJDK 64-Bit Server VM 11.0.6+10
Runtime: OpenJDK Runtime Environment 11.0.6+10
System: Mac OS X version 10.16 running on x86_64; UTF-8; en_US (jmonkeyplatform)
Also I'm using openjdk11 that I installed via brew (brew install openjdk@11).
Also when I open a project in the SDK's editor, I'm getting a similar error.
Stacktrace looks similar to the above:
Loaded asset CookScene
java.lang.NullPointerException
at com.jme3.gde.scenecomposer.SceneEditorController$17.run(SceneEditorController.java:721)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
java.lang.NullPointerException
at com.jme3.gde.scenecomposer.SceneEditorController$17.run(SceneEditorController.java:721)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
This highlights another issue with the scenecomposer/j3o's; that there's no way to recover a file once something has gone wrong with it.
I'm a bit unsure of the use case here. Are you trying to link the same scene you just created? Because choosing "Link in Scene Composer" from the File menu won't give you a dialog, but use the currently selected scene in the Project window. So it's equivalent to right clicking a scene and selecting "Link in Scene Composer".