Skip to content
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

Sauliusg fix 2700 null pointer exception on get fulltext #2751

Merged

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Apr 16, 2017

Followup from @sauliusg PR #2744
Fix for #2739

sauliusg and others added 17 commits April 14, 2017 22:37
pointer exception' when a databse is opened in a current directory.
also three regression tests for the old functionality.
the previous bug. Indeed, the new unit test fails both in Eclipse and in
the CLI './gradlew build' run.
pointer exception' if a database is passed as a local file without
explicite path. The tests in 'BibDatabaseContextTest.java' pass again.
BibDatabaseContextTest unit test.
…ps://github.com/sauliusg/jabref into sauliusg-fix-2700-null-pointer-exception-on-Get-fulltext

* 'fix-2700-null-pointer-exception-on-Get-fulltext' of https://github.com/sauliusg/jabref:
  Commenting variables used in the 'BibDatabaseContextTest' unit test.
  Changing 'assert ...path != null ...' to 'Objects.requireNonNull(...)'.
  Switcing from 'assertTrue' to 'assertEquals' in the BibDatabaseContextTest unit test.
  Fixed the coding style according to the JabRef conventions.
  Adding explicite scope ('private') to 'FileDirectoryPreferences preferences'.
  Removing the test line that is not needed for the tests to work in 'BibDatabaseContextTest'.
  Restoring my fix in the 'BibDatabaseContext.java' file, fixing the 'null pointer exception' if a database is passed as a local file without explicite path. The tests in 'BibDatabaseContextTest.java' pass again.
  Temporarily commenting out of the new fix, to see if the new tests catch the previous bug. Indeed, the new unit test fails both in Eclipse and in the CLI './gradlew build' run.
  Fixing the order of imports in the newly created test file.
  Creating a working unit test for the new relative path fix, and adding also three regression tests for the old functionality.
  Attempting to create a unit test for the new fix, but so far could not re-create the necessary run environment.
  Adding a fix for the [WIP] Clicking 'Get fulltext' triggers a 'null pointer exception' when a databse is opened in a current directory.
  Removing the rest of my debug prints.
  Removing the 'HERE' debug print.
  Adding a bunch of debug prints and assert's to find a reason for the 'null pointer exception'.
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 16, 2017
@Siedlerchr Siedlerchr merged commit d489398 into master Apr 16, 2017
@Siedlerchr Siedlerchr deleted the sauliusg-fix-2700-null-pointer-exception-on-Get-fulltext branch April 16, 2017 20:20
Siedlerchr pushed a commit that referenced this pull request Apr 16, 2017
* Adding a bunch of debug prints and assert's to find a reason for the
'null pointer exception'.

* Removing the 'HERE' debug print.

* Removing the rest of my debug prints.

* Adding a fix for the [WIP] Clicking 'Get fulltext' triggers a 'null
pointer exception' when a databse is opened in a current directory.

* Attempting to create a unit test for the new fix, but so far could not
re-create the necessary run environment.

* Creating a working unit test for the new relative path fix, and adding
also three regression tests for the old functionality.

* Fixing the order of imports in the newly created test file.

* Temporarily commenting out of the new fix, to see if the new tests catch
the previous bug. Indeed, the new unit test fails both in Eclipse and in
the CLI './gradlew build' run.

* Restoring my fix in the 'BibDatabaseContext.java' file, fixing the 'null
pointer exception' if a database is passed as a local file without
explicite path. The tests in 'BibDatabaseContextTest.java' pass again.

* Removing the test line that is not needed for the tests to work in
'BibDatabaseContextTest'.

* Adding explicite scope ('private') to 'FileDirectoryPreferences
preferences'.

* Fixed the coding style according to the JabRef conventions.

* Switcing from 'assertTrue' to 'assertEquals' in the
BibDatabaseContextTest unit test.

* Changing 'assert ...path != null ...' to 'Objects.requireNonNull(...)'.

* Commenting variables used in the 'BibDatabaseContextTest' unit test.

* Fix paths handling in test and mock fileDirPrefs

* Fix modernizer
Siedlerchr added a commit that referenced this pull request Apr 16, 2017
* 'master' of https://github.com/JabRef/jabref:
  Sauliusg fix 2700 null pointer exception on get fulltext (#2751)
koppor pushed a commit that referenced this pull request Apr 16, 2017
* Adding a bunch of debug prints and assert's to find a reason for the
'null pointer exception'.

* Removing the 'HERE' debug print.

* Removing the rest of my debug prints.

* Adding a fix for the [WIP] Clicking 'Get fulltext' triggers a 'null
pointer exception' when a databse is opened in a current directory.

* Attempting to create a unit test for the new fix, but so far could not
re-create the necessary run environment.

* Creating a working unit test for the new relative path fix, and adding
also three regression tests for the old functionality.

* Fixing the order of imports in the newly created test file.

* Temporarily commenting out of the new fix, to see if the new tests catch
the previous bug. Indeed, the new unit test fails both in Eclipse and in
the CLI './gradlew build' run.

* Restoring my fix in the 'BibDatabaseContext.java' file, fixing the 'null
pointer exception' if a database is passed as a local file without
explicite path. The tests in 'BibDatabaseContextTest.java' pass again.

* Removing the test line that is not needed for the tests to work in
'BibDatabaseContextTest'.

* Adding explicite scope ('private') to 'FileDirectoryPreferences
preferences'.

* Fixed the coding style according to the JabRef conventions.

* Switcing from 'assertTrue' to 'assertEquals' in the
BibDatabaseContextTest unit test.

* Changing 'assert ...path != null ...' to 'Objects.requireNonNull(...)'.

* Commenting variables used in the 'BibDatabaseContextTest' unit test.

* Fix paths handling in test and mock fileDirPrefs

* Fix modernizer
Siedlerchr added a commit that referenced this pull request Apr 19, 2017
* upstream/master:
  Reorder CHANGELOG for 4.0-beta release
  Add test that 3.8.2 should not be updated to 4.0-beta
  Fix test according to new behavior
  Sauliusg fix 2700 null pointer exception on get fulltext (#2751)
  Fix selecting all entries with shortcut (#2683)
  Incoporate feedback. Make it work for one comma (and not for two)
  Revert "allow search for words without diacritics in contain-based mode". I did not know that the push is considered in my push request
  allow search for words without diacritics in contain-based mode
  Update CHANGELOG.md
  corrected issue #2652
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.

2 participants