-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"open folder" causes java.lang.NullPointerException: null #4763
Comments
I am able to reproduce this on my setup (same as that of the author). |
@CaptainDaVinci It should open the default file manager of the OS and select the file. @pirius It seems like this is a classical NPE because the environment variable jabref/src/main/java/org/jabref/gui/desktop/os/Linux.java Lines 53 to 66 in 7ed15bc
|
For setups using window managers (e.g i3) instead of desktop environments (e.g KDE), there aren't any out-of-the box file explorers provided. I think many users having a similar setup prefer not to have a GUI file explorer. Instead we could, maybe, open the terminal where the file resides? |
Sounds like a good idea. There should already be a method for opening the terminal. So the easiest way would be to wrap the System.getEnv call in an optional.ofNullable and then open the terminal if not present |
@Siedlerchr now I understand. I neither have nautilus installed nor is my DESKTOP_SESSION set. My suggestion would be:
|
Hello, |
Now, when user clicks "open folder", JabRef will try to look whether file browser command(in Preference Tab) is explicitly set by the user or not, If yes then it will execute that command otherwise default behaviour will be applied by checking "DESKTOP_SESSION" environment variable. |
Looks good! Thanks for working on this! |
@Siedlerchr and @pirius thanks for your comment. @OverRide
need a comment on this.. |
And I've one more question: |
…bRef_en.properties
…n the NullPointer exception (#4797) * Add an option in preference settings to set what action to be taken by JabRef when user clicks 'open folder' on a entry. * Fix #4763 and add added required changes in CHANGELOG.md and JabRef_en.properties * Refactor and Reformat code. * Fix issue #4802, where option 'open terminal here' with custom command was passing wrong argument * Fix failure of LocalizationConsistencyTest after code changes.
Thanks to @deepakkumar96 this issue should now be resolved. We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version. |
Hello @Siedlerchr, |
I can confirm, this successfully solved the issue. Good work! |
@deepakkumar96 Both issues are solved thanks to your PR. Thanks again for your contribution. |
Thank you @pirius and @Siedlerchr |
cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: cb19d25
cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: cb19d25
270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 270cd32
270cd32 small fixes for revista-biblica.csl (#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (#4765) 9556b12 Create the-american-journal-of-bioethics.csl (#4766) d50c761 fix initials of revista-biblica.csl (#4768) acbb043 Create nwu-harvard-2020.csl (#4762) cb19d25 Create revista-biblica.csl (#4763) d40b5ff Small corrections in IFAO style (#4761) ba4dd7c Add NZ Journal of History (#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (#4756) a4317f2 Update quaternaire.csl (#4752) 36fe9c2 Update journal-of-management-studies.csl (#4740) f0cb15d Bugfix (#4750) ef19002 Revert 1 yrg23 patch 1 (#4754) 873fc9e Update the-geological-society-of-london.csl (#4738) 93ca354 Update The Geological Society dependents (#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (#4737) 63d657c change et al. min (#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 270cd32
c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: c35d219
586e0b8 Reindent/reorder 56cd2cb small fixes for skene-journal-of-theatre-and-drama-studies.csl (JabRef#4779) 31ab72f fix demote-non-dropping-particle for equine-veterinary-education.csl (JabRef#4778) 93d409f Create skene-journal-of-theatre-and-drama-studies.csl (JabRef#4776) 06ab6ec Update groupe-danthropologie-et-darcheologie-funeraire.csl (JabRef#4777) 3b27a45 Create archaeonautica.csl (JabRef#4775) 0e0acb7 Create antafr.csl (JabRef#4774) 5dad23d Create monash-university-csiro.csl (JabRef#4773) c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 586e0b8
586e0b8 Reindent/reorder 56cd2cb small fixes for skene-journal-of-theatre-and-drama-studies.csl (JabRef#4779) 31ab72f fix demote-non-dropping-particle for equine-veterinary-education.csl (JabRef#4778) 93d409f Create skene-journal-of-theatre-and-drama-studies.csl (JabRef#4776) 06ab6ec Update groupe-danthropologie-et-darcheologie-funeraire.csl (JabRef#4777) 3b27a45 Create archaeonautica.csl (JabRef#4775) 0e0acb7 Create antafr.csl (JabRef#4774) 5dad23d Create monash-university-csiro.csl (JabRef#4773) c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 586e0b8
586e0b8 Reindent/reorder 56cd2cb small fixes for skene-journal-of-theatre-and-drama-studies.csl (JabRef#4779) 31ab72f fix demote-non-dropping-particle for equine-veterinary-education.csl (JabRef#4778) 93d409f Create skene-journal-of-theatre-and-drama-studies.csl (JabRef#4776) 06ab6ec Update groupe-danthropologie-et-darcheologie-funeraire.csl (JabRef#4777) 3b27a45 Create archaeonautica.csl (JabRef#4775) 0e0acb7 Create antafr.csl (JabRef#4774) 5dad23d Create monash-university-csiro.csl (JabRef#4773) c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 586e0b8
586e0b8 Reindent/reorder 56cd2cb small fixes for skene-journal-of-theatre-and-drama-studies.csl (JabRef#4779) 31ab72f fix demote-non-dropping-particle for equine-veterinary-education.csl (JabRef#4778) 93d409f Create skene-journal-of-theatre-and-drama-studies.csl (JabRef#4776) 06ab6ec Update groupe-danthropologie-et-darcheologie-funeraire.csl (JabRef#4777) 3b27a45 Create archaeonautica.csl (JabRef#4775) 0e0acb7 Create antafr.csl (JabRef#4774) 5dad23d Create monash-university-csiro.csl (JabRef#4773) c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 586e0b8
586e0b8 Reindent/reorder 56cd2cb small fixes for skene-journal-of-theatre-and-drama-studies.csl (JabRef#4779) 31ab72f fix demote-non-dropping-particle for equine-veterinary-education.csl (JabRef#4778) 93d409f Create skene-journal-of-theatre-and-drama-studies.csl (JabRef#4776) 06ab6ec Update groupe-danthropologie-et-darcheologie-funeraire.csl (JabRef#4777) 3b27a45 Create archaeonautica.csl (JabRef#4775) 0e0acb7 Create antafr.csl (JabRef#4774) 5dad23d Create monash-university-csiro.csl (JabRef#4773) c35d219 Create journal-of-the-royal-society-of-western-australia.csl (JabRef#4772) e772607 Update journal-of-the-royal-society-of-western-australia.csl c4b5edc Update journal-of-the-royal-society-of-western-australia.csl 2245fb1 Update journal-of-the-royal-society-of-western-australia.csl e8bcb31 Create journal-of-the-royal-society-of-western-australia.csl 270cd32 small fixes for revista-biblica.csl (JabRef#4770) 5dd7ede fix issue with DOI URL for unified-style-sheet-for-linguistics.csl (JabRef#4765) 9556b12 Create the-american-journal-of-bioethics.csl (JabRef#4766) d50c761 fix initials of revista-biblica.csl (JabRef#4768) acbb043 Create nwu-harvard-2020.csl (JabRef#4762) cb19d25 Create revista-biblica.csl (JabRef#4763) d40b5ff Small corrections in IFAO style (JabRef#4761) ba4dd7c Add NZ Journal of History (JabRef#4760) 1e20dbd Harvard Stellenbosch: Further et al adjustment a59a17e Update american-medical-association.csl to version 11 (JabRef#4727) 22849dd Create unified-style-sheet-for-linguistics-de-gruyter-literature.csl (JabRef#4627) 647fb56 Update karabuk-university-graduate-school-of-natural-and-applied-scie… (JabRef#4756) a4317f2 Update quaternaire.csl (JabRef#4752) 36fe9c2 Update journal-of-management-studies.csl (JabRef#4740) f0cb15d Bugfix (JabRef#4750) ef19002 Revert 1 yrg23 patch 1 (JabRef#4754) 873fc9e Update the-geological-society-of-london.csl (JabRef#4738) 93ca354 Update The Geological Society dependents (JabRef#4751) 9d3f0f5 Update technische-universitat-dresden-linguistik.csl (JabRef#4737) 63d657c change et al. min (JabRef#4736) git-subtree-dir: src/main/resources/csl-styles git-subtree-split: 586e0b8
JabRef--master--latest.jar (https://builds.jabref.org/master/) as well as version 4.3.1-2 form Arch AUR (https://aur.archlinux.org/packages/jabref/)
Right clicking on any entry in any database and selecting "Open folder" results in the NullPointer exception below. The setup experiencing this problem is Arch Linux with i3 window manager and without desktop environment. Hence it could be that there is a dependency to some external SW that is not satisfied. This problem exists over multiple version already (~1y) over different Arch machines I operate. My guess is that there is some unknown dependency that I lack on my systems, which causes "open folder" to silently crash. I would be interested in tracking down what exactly is causing that issue. Might be something very obvious to you guys.
Steps to reproduce the behavior:
Log File
Used Java version:
I'm happy to provide further details!
The text was updated successfully, but these errors were encountered: