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

ApplicationHome does not work correctly with paths that contain spaces #20531

Closed
jmdsg opened this issue Mar 16, 2020 · 0 comments
Closed

ApplicationHome does not work correctly with paths that contain spaces #20531

jmdsg opened this issue Mar 16, 2020 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@jmdsg
Copy link

jmdsg commented Mar 16, 2020

I have a project that uses the getSource() of the ApplicationHome, and today I tested the project in another pc using windows 10, the path of the folder where the project is, contains a space and getSource returns null.

The reason is because the condition source.exists() returns false since the space is replaced by %20 in the url and a file is created using new File(location.getPath()).

I don't know the implications that would have to change getPath to toURI or just replacing the %20 by spaces, but at least at first hand, it seems like a possible simple solution.

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

No branches or pull requests

3 participants