You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I have a project that uses the
getSource()
of theApplicationHome
, and today I tested the project in another pc using windows 10, the path of the folder where the project is, contains a space andgetSource
returns null.The reason is because the condition
source.exists()
returnsfalse
since the space is replaced by%20
in the url and a file is created usingnew File(location.getPath())
.I don't know the implications that would have to change
getPath
totoURI
or just replacing the%20
by spaces, but at least at first hand, it seems like a possible simple solution.The text was updated successfully, but these errors were encountered: