Closed ilippert closed 4 years ago
Thank you for your bug report. Can you tell me a bit about the entry you tried to right click on? Does it have a file attached? Is the attached file actually also present on your system?
I am trying to reproduce it, but cannot. I am, sorry.
It did happen for all entries yesterday. Meanwhile I have restarted the computer, now it does not reappear...
I know this is not very helpful - and I am sorry for bothering. Still hope the report might be helpful.
Thank you anyways. Every bug report is helping, even if it's not reproducible at this moment. What you have experienced might someone else as well. And this bug report can probably help to triangulate the causing issue later.
The only reason I can think of might be caused by the following code snippet:
public static BooleanExpression isAnyFieldSetForSelectedEntry(List<Field> fields, StateManager stateManager) {
BibEntry entry = stateManager.getSelectedEntries().get(0);
return Bindings.createBooleanBinding(
() -> entry.getFields().stream().anyMatch(fields::contains),
entry.getFieldsObservable(),
stateManager.getSelectedEntries());
}
BibEntry entry = stateManager.getSelectedEntries().get(0);
Also I do not know how to trigger this method without an entry selected it might still be an empty list. At least this is what the error log says. So we can only get the entry when it exists.
@ilippert Could you please test if this issue is now solved?
stefan-kolb's "another bug" is not solved.
i get these details when following the process
1 select two entries (one with an attached file one without) First needs to be the one with a file! 2 select open folder in context menu 3 exception occurs for selected entry without attached file
JabRef 5.1--2020-04-18--38e3aa7 Linux 5.5.16-200.fc31.x86_64 amd64 Java 14.0.1
@stefan-kolb 's fix wasn't mentioned here yet: #6122
@Siedlerchr, sorry, this issue still has the label status: waiting-for-customer-feedback. I am not sure whether I can provide more input...
the issue described at https://github.com/JabRef/jabref/issues/6085#issuecomment-616246685 is still present
at
JabRef 5.1--2020-05-02--1d9957b Linux 5.6.8-200.fc31.x86_64 amd64 Java 14.0.1
This error should be gone in the latest master (currently building, should be ready in approx half an hour)
JabRef 5.0--2020-03-08--93de138 Linux 5.5.7-200.fc31.x86_64 amd64 Java 13.0.2
Sorry, I am not sure how this happened...
Paste your log details here.
Detail information:
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source) at java.base/java.util.Objects.checkIndex(Unknown Source) at java.base/java.util.ArrayList.get(Unknown Source) at org.jabref.merged.module/com.sun.javafx.collections.ObservableListWrapper.get(Unknown Source) at org.jabref/org.jabref.gui.actions.ActionHelper.isAnyFieldSetForSelectedEntry(Unknown Source) at org.jabref/org.jabref.gui.actions.ActionHelper.isFieldSetForSelectedEntry(Unknown Source) at org.jabref/org.jabref.gui.maintable.OpenFolderAction.