Project

General

Profile

bug #8764

Updated by Katja Luther over 4 years ago

Moving a subtree in character editor results in NullPointerException. 

 This problem again comes with null values in the children list of the parent. The NPE is thrown because the first elements in parent node is not initialized and the children list are null values and not available when trying to set the sortindex results in NPE. moved node should be removed from the old parent. 

 ~~~ 
 Caused by: java.lang.NullPointerException 
	 at eu.etaxonomy.cdm.model.term.TermNode.removeChild(TermNode.java:344) 
	 at eu.etaxonomy.cdm.model.term.TermNode.removeChild(TermNode.java:320) 
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
	 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
	 at java.lang.reflect.Method.invoke(Method.java:498) 
	 at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:79) 
	 at eu.etaxonomy.cdm.model.term.TermNode_$$_jvstd23_4c.removeChild(TermNode_$$_jvstd23_4c.java) 
	 at eu.etaxonomy.cdm.model.term.TermNode.addChild(TermNode.java:292) 
	 at eu.etaxonomy.cdm.model.term.TermNode.addChild(TermNode.java:198) 
	 at eu.etaxonomy.cdm.api.service.TermNodeServiceImpl.moveNode(TermNodeServiceImpl.java:186) 
 ~~~

Back