keeps/roda-in

Java.lang.NullPointerException

jmaferreira opened this issue · 1 comments

Happens when we try to add a new item to the classification plan.
I have cleaned the home folder before using the new version of the app.

screen shot 2018-09-24 at 15 52 42

null
	org.roda.rodain.ui.inspection.AddMetadataPane.addRelatedTags(AddMetadataPane.java:404)
	org.roda.rodain.ui.inspection.AddMetadataPane.lambda$createContinueButton$3(AddMetadataPane.java:327)
	com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	javafx.event.Event.fireEvent(Event.java:198)
	javafx.scene.Node.fireEvent(Node.java:8413)
	javafx.scene.control.Button.fire(Button.java:185)
	com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
	com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
	com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
	com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
	com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	javafx.event.Event.fireEvent(Event.java:198)
	javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
	javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
	javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
	javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
	com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
	com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
	java.security.AccessController.doPrivileged(Native Method)
	com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
	com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
	com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
	com.sun.glass.ui.View.handleMouseEvent(View.java:555)
	com.sun.glass.ui.View.notifyMouse(View.java:937)
	com.sun.glass.ui.mac.MacApplication._enterNestedEventLoopImpl(Native Method)
	com.sun.glass.ui.mac.MacApplication._enterNestedEventLoop(MacApplication.java:109)
	com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
	com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
	com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:590)
	javafx.stage.Stage.showAndWait(Stage.java:474)
	org.roda.rodain.ui.ModalStage.setRoot(ModalStage.java:84)
	org.roda.rodain.ui.schema.ui.SchemaPane.addNewLevel(SchemaPane.java:606)
	org.roda.rodain.ui.schema.ui.SchemaPane.lambda$createBottom$10(SchemaPane.java:517)
	com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	javafx.event.Event.fireEvent(Event.java:198)
	javafx.scene.Node.fireEvent(Node.java:8413)
	javafx.scene.control.Button.fire(Button.java:185)
	com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
	com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
	com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
	com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
	com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
	javafx.event.Event.fireEvent(Event.java:198)
	javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
	javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
	javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
	javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
	com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
	com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
	java.security.AccessController.doPrivileged(Native Method)
	com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
	com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
	com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
	com.sun.glass.ui.View.handleMouseEvent(View.java:555)
	com.sun.glass.ui.View.notifyMouse(View.java:937)

screen shot 2018-09-24 at 15 51 17

Looks like a configuration problem, looking at the code, it is expecting for metadata.dc.tags to exist, but it does not on the default configuration. In fact, the only metadata type with tags is documentation.

This seems to be broken since May 2017, on this commit e3ffde4