[jcifs] SmbFile.getParent() NullPointerException
David Kaelbling
dkaelbling at blackducksoftware.com
Sat Nov 13 08:46:19 MST 2010
> Remember that every valid SMB URL that refers to a file must have at least four slashes: two to
> separate the protocol from the host, another to separate the host from the share, and one more
> to separate the share from the file. When the host, share, and file are all null, you get the seemingly
> odd result.
Ah, that may be why the code is written that way! Although getPath() needs to work for more than just file URLs, of course.
-- David
More information about the jCIFS
mailing list