Project

General

Profile

Actions

bug #7999

closed

Allow override does not work correctly for distribution areas

Added by Andreas Müller over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Highest
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
critical
Found in Version:

Description

I tested with an empty databases with no CdmPreferences at all. I would expect that the default is, that I can define the available vocabularies in the local preferences and that the default value is that all vocabularies are selected (as nobody set a filter yet)

But both is not the case. The area selection is disabled in local preferences and in distribution editor no vocabulary is available.

This currently leads to an NPE when opening the distribution editor as the list of areas is null:

login : admin
editor version : 5.5.0.201901170948
server : test.e-taxonomy.eu (edit-test) / test1
schema version : 5.0.0.0.20180514
os : Windows Server 2012 R2 6.3 amd64
java : 1.8.0_121
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
                at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
                at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
                at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:288)
                at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
                at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
                at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
                at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
...
Caused by: java.lang.NullPointerException
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.DistributionEditor.initLabels(DistributionEditor.java:538)
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.DistributionEditor.createLayers(DistributionEditor.java:333)
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.DistributionEditor.createTable(DistributionEditor.java:293)
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.DistributionEditorPart.init(DistributionEditorPart.java:120)
                at eu.etaxonomy.taxeditor.editor.EditorUtil.openDistributionEditor(EditorUtil.java:105)
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.handler.OpenChecklistEditorHandlerE4.open(OpenChecklistEditorHandlerE4.java:66)
                at eu.etaxonomy.taxeditor.editor.view.checklist.e4.handler.OpenChecklistEditorHandlerE4.open(OpenChecklistEditorHandlerE4.java:1)
                at eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4.execute(DefaultOpenHandlerBaseE4.java:39)
                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.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
                ... 37 more


Files

picture928-1.png (6.63 KB) picture928-1.png Andreas Müller, 01/29/2019 06:06 PM

Related issues

Related to EDIT - bug #7856: Allow local override for distribution vocabulariesClosedKatja Luther

Actions
Related to EDIT - task #7854: Open issues in TaxDistributionEditor ClosedKatja Luther

Actions
Related to EDIT - bug #7880: Implement centralized preference default loading strategyClosedAndreas Müller

Actions
Actions

Also available in: Atom PDF