Project

General

Profile

bug #6930

Tree index is null after deleting taxon and moving the children to the parent taxon

Added by Patrick Plitzner about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
New
Assignee:
Category:
cdmlib
Target version:
Start date:
09/07/2017
Due date:
% Done:

0%

Severity:
normal
Found in Version:

Description

steps to reproduce:

  1. have a taxonomic backbone like this: Classification-> Taxon A -> Childtaxon B
  2. Delete A with the setting "Move children to parent"
  3. Check in the data base or try to delete the moved taxon B (will result in NPE because tree index is null)

stack trace line may not be correct as I found this in my branch

Caused by: java.lang.NullPointerException
    at java.lang.String.startsWith(String.java:1405)
    at java.lang.String.startsWith(String.java:1434)
    at eu.etaxonomy.taxeditor.editor.EditorUtil.closeObsoleteEditor(EditorUtil.java:369)

Selection_001.png View - db_table (36.4 KB) Patrick Plitzner, 09/07/2017 03:18 PM

History

#1 Updated by Patrick Plitzner about 2 years ago

  • Description updated (diff)

#2 Updated by Patrick Plitzner about 2 years ago

  • Description updated (diff)

#3 Updated by Katja Luther about 2 years ago

The treeIndex should be reset during saving in saveOrUpdateListener, probably this is not called because the deleting is called on the server.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)