Skip to content

Remove Preview Style from the right list results in Divide by zero exception #4621

@Siedlerchr

Description

@Siedlerchr

Current master

Move all styles from the right to the left, including "Preview".
The following error comes up.

A solution would be to disable the cell or to prevent it from moving.

14:48:45.633 [JavaFX Application Thread] ERROR org.jabref.FallbackExceptionHandler - Uncaught exception occurred in Thread[JavaFX Application Thread,5,main] - java.lang.ArithmeticException: / by zero
	at org.jabref.preferences.PreviewPreferences$Builder.withPreviewCyclePosition(PreviewPreferences.java:90)
	at org.jabref.preferences.PreviewPreferences$Builder.withPreviewCycle(PreviewPreferences.java:82)
	at org.jabref.gui.preferences.PreviewPrefsTab.storeSettings(PreviewPrefsTab.java:264)
	at org.jabref.gui.preferences.PreviewPrefsTab.lambda$3(PreviewPrefsTab.java:97) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions