Refactor GVFS (don't require libgio)
This commit is contained in:
parent
a5eefa00b2
commit
8116b53018
@ -127,12 +127,12 @@ public class FileTransferable implements Transferable {
|
|||||||
file = GVFS.getDefaultVFS().getPathForURI(uri);
|
file = GVFS.getDefaultVFS().getPathForURI(uri);
|
||||||
}
|
}
|
||||||
} catch (LinkageError error) {
|
} catch (LinkageError error) {
|
||||||
debug.log(Level.WARNING, "Unable to resolve GVFS URI", error);
|
debug.log(Level.WARNING, "Unable to resolve GVFS URI: " + uri, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file == null || !file.exists()) {
|
if (file == null || !file.exists()) {
|
||||||
throw new FileNotFoundException(file != null ? file.getPath() : line);
|
throw new FileNotFoundException(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
files.add(file);
|
files.add(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user