jMonkeyEngine / sdk

The jMonkeyEngine3 Software Development Kit based on Netbeans
BSD 3-Clause "New" or "Revised" License
314 stars 101 forks source link

ShaderNodes: Exception in findConnectionPoint #235

Open MeFisto94 opened 4 years ago

MeFisto94 commented 4 years ago

When playing with Shader Nodes, I changed something in Text (specifically I changed the MatParam Name and then also connected this to the ColorMult). Now obviously the UI Part doesn't recognize this change. It should.

If not, it should at least prevent the Exception:

java.lang.NullPointerException
    at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.findConnectPoint(MatDefEditorlElement.java:652)
    at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.makeConnection(MatDefEditorlElement.java:664)
    at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.initDiagram(MatDefEditorlElement.java:219)
    at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.reload(MatDefEditorlElement.java:765)
    at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.componentShowing(MatDefEditorlElement.java:491)
    at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:480)
    at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:437)
neph1 commented 2 years ago

This is a big issue for the usability of the editor. I'll assign it to myself to keep it at hand.