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

Ignore empty Strings during String to FileArray conversion #479

Merged

Conversation

stefanhahmann
Copy link
Contributor

  • The current state of the code is that an empty String, is converted to a new File("") object initialized with an empty String
  • A File object instantiated by this will be a File object with an absolute Path that is equivalent to the Path from which the application was started
  • The result of this is a bit unpredictable
  • This PR thus suggests that an empty String should not be converted to File object at all and not be added to the output

* The current state of the code is that an empty String, is converted to a new File("") object with an empty String
* A File object instantiated by this will be a File object with an absolute Path that is equivalent to the Path from which the application was started
* The result of this is relatively unpredictable
* Thus empty String should not be converted to File object and not be added to the output
@ctrueden ctrueden merged commit a2d0042 into scijava:master Jul 10, 2024
3 checks passed
@ctrueden
Copy link
Member

@stefanhahmann Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants