File tree Expand file tree Collapse file tree
src/main/java/org/redlance/platformtools/impl/windows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77base. archivesName = " PlatformTools"
8- version = " 1.0.0 "
8+ version = " 1.0.1 "
99group = " org.redlance"
1010
1111repositories {
Original file line number Diff line number Diff line change 22
33import org .redlance .platformtools .PlatformFileReferer ;
44
5+ import java .io .FileNotFoundException ;
56import java .io .FileReader ;
67import java .io .IOException ;
78import java .io .Reader ;
@@ -14,6 +15,8 @@ public String getFileReferer(String path) throws IOException {
1415 Properties props = new Properties ();
1516 try (Reader reader = new FileReader (path + ":Zone.Identifier" , StandardCharsets .UTF_8 )) {
1617 props .load (reader );
18+ } catch (FileNotFoundException ex ) {
19+ return null ;
1720 }
1821
1922 return (String ) props .getOrDefault ("HostUrl" ,
You can’t perform that action at this time.
0 commit comments