You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SEVERE: java.lang.NullPointerException
at org.primefaces.component.tree.TreeRenderer.decodeDragDrop(TreeRenderer.java:163)
at org.primefaces.component.tree.TreeRenderer.decode(TreeRenderer.java:67)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:514)
at org.primefaces.component.tree.Tree.processDecodes(Tree.java:270)
SEVERE: java.lang.NullPointerException
at org.primefaces.component.tree.TreeRenderer.decodeDragDrop(TreeRenderer.java:163)
at org.primefaces.component.tree.TreeRenderer.decode(TreeRenderer.java:67)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:514)
at org.primefaces.component.tree.Tree.processDecodes(Tree.java:270)
Expected behavior
There should be no NPE problem. The expected Result should the same as upper TabView.
PrimeFaces edition
None
PrimeFaces version
12.0.0
Theme
No response
JSF implementation
Mojarra
JSF version
2.2
Java version
JavaSE-1.8
Browser(s)
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
In the TabView with dynamic number of tabs (DataModel in the showcase http://www.primefaces.org:8080/showcase/ui/panel/tabView.xhtml?jfwid=e3889), drag-drop event between trigger a NullPointerException in TreeRenderer.java
https://github.com/primefaces/primefaces/blob/master/primefaces/src/main/java/org/primefaces/component/tree/TreeRenderer.java#L162-L163
In the code of TreeRenderer.java, "dragSource" is the id of the tree.
This might be the reason cause the findComponent() method return null value.
primefaces-test-master.zip
Reproducer
Expected behavior
There should be no NPE problem. The expected Result should the same as upper TabView.
PrimeFaces edition
None
PrimeFaces version
12.0.0
Theme
No response
JSF implementation
Mojarra
JSF version
2.2
Java version
JavaSE-1.8
Browser(s)
No response
The text was updated successfully, but these errors were encountered: