Skip to content

Fix for opening console on active database#8492

Merged
Siedlerchr merged 7 commits into
JabRef:mainfrom
RyanEubank:fix-for-issue-8466
Feb 9, 2022
Merged

Fix for opening console on active database#8492
Siedlerchr merged 7 commits into
JabRef:mainfrom
RyanEubank:fix-for-issue-8466

Conversation

@RyanEubank

Copy link
Copy Markdown
Contributor

Fixes #8466

Opening console from drop down menu on toolbar now opens console at the location of the currently active
database as intended.

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

The change fixes an issue where opening the console at the current library caused a null reference exception. The original error occurred due to an explicit null value being passed into the action's constructor. The fix supplies the correct database to the action when called.

See: #8466
Added Junit tests cases to verify that commands retrieve the correct database, and that the command defaults to the active database otherwise.

Tests cases added in response to a bug fix, see: #8466
Update for style correction
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 9, 2022

@Siedlerchr Siedlerchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix and also a huge plus for the tests ❤️

@Siedlerchr Siedlerchr merged commit de114d5 into JabRef:main Feb 9, 2022
Siedlerchr added a commit that referenced this pull request Sep 2, 2022
* upstream/main:
  Update Gradle Wrapper from 7.3.3 to 7.4. (#8499)
  Bump flexmark-ext-gfm-strikethrough from 0.62.2 to 0.64.0 (#8500)
  Bump tika-core from 2.2.1 to 2.3.0 (#8501)
  Bump classgraph from 4.8.138 to 4.8.139 (#8502)
  Fix for opening console on active database (#8492)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu "Open terminal here" causes an uncaught exception

2 participants