Project

General

Profile

bug #8764

moving subtree results in NPE

Added by Katja Luther 7 months ago. Updated 7 months ago.

Status:
New
Priority:
New
Category:
cdmlib
Target version:
Start date:
12/12/2019
Due date:
% Done:

0%

Severity:
normal
Found in Version:

Description

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 the children list are null values and when trying to set the sortindex results in NPE.

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)

History

#1 Updated by Katja Luther 7 months ago

  • Description updated (diff)

#2 Updated by Katja Luther 7 months ago

  • Description updated (diff)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)