Skip to content

Uncaught Exception in ThreeWayMerge dialog when looking up Bibliographic information from DOI #13673

@HoussemNasri

Description

@HoussemNasri

JabRef version

Latest development branch build (please note build date below)

Operating system

macOS

Details on version and operating system

No response

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

It only happens for specific entries. The stacktrace is obvious enough.

Definition of Done

Unit tests.

Appendix

Log File
java.util.NoSuchElementException: No value present
	at java.base/java.util.Optional.get(Optional.java:143)
	at org.jabref.jablib/org.jabref.logic.bibtex.comparator.YearFieldValuePlausibilityComparator.compare(YearFieldValuePlausibilityComparator.java:35)
	at org.jabref/org.jabref.gui.mergeentries.threewaymerge.FieldRowViewModel.autoSelectBetterValue(FieldRowViewModel.java:133)
	at org.jabref/org.jabref.gui.mergeentries.threewaymerge.FieldRowView.autoSelectBetterValue(FieldRowView.java:212)
	at org.jabref/org.jabref.gui.mergeentries.threewaymerge.ThreeWayMergeView.autoSelectBetterFields(ThreeWayMergeView.java:206)
	at org.jabref/org.jabref.gui.mergeentries.threewaymerge.MergeEntriesDialog.autoSelectBetterFields(MergeEntriesDialog.java:67)
	at org.jabref/org.jabref.gui.mergeentries.FetchAndMergeEntry.showMergeDialog(FetchAndMergeEntry.java:112)
	at org.jabref/org.jabref.gui.mergeentries.FetchAndMergeEntry.lambda$fetchAndMerge$2(FetchAndMergeEntry.java:85)
	at org.jabref/org.jabref.gui.util.UiTaskExecutor.lambda$getJavaFXTask$1(UiTaskExecutor.java:204)
	at [email protected]/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
	at [email protected]/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
	at [email protected]/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at [email protected]/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at [email protected]/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at [email protected]/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
	at [email protected]/javafx.event.Event.fireEvent(Event.java:199)
	at [email protected]/javafx.concurrent.EventHelper.fireEvent(EventHelper.java:219)
	at [email protected]/javafx.concurrent.Task.fireEvent(Task.java:1321)
	at [email protected]/javafx.concurrent.Task.setState(Task.java:724)
	at [email protected]/javafx.concurrent.Task$TaskCallable.lambda$call$1(Task.java:1399)
	at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419)
	at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

Metadata

Metadata

Assignees

Labels

FirstTimeCodeContributionTriggers GitHub Greeter Workflowgood first issueAn issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions