[jcifs] SmbFile.getParent() NullPointerException

Michael B Allen ioplex at gmail.com
Fri Nov 12 15:44:41 MST 2010


Hi David,

Can you post a fragment of code that you think would reproduce the
NPE? That will make the TODO entry crystal clear.

Thanks for the feedback.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


On Fri, Nov 12, 2010 at 4:03 PM, David Kaelbling
<dkaelbling at blackducksoftware.com> wrote:
> Hi,
>
> Ah, the joys of unit tests :-)  In jcifs-1.3.15 SmbFile.getParent() says
> that "smb://" is returned as its own parent.  Not so -- smb:// has null
> authority, so getParent() ends up throwing NullPointerException.
>
> I suspect that getCanonicalPath() has the same problem, although I
> haven't checked.
>
>  - David
>
> --
> David Kaelbling
> Senior Software Engineer
> Black Duck Software, Inc.
>
> dkaelbling at blackducksoftware.com
> T +1.781.810.2041
> F +1.781.891.5145
>
> http://www.blackducksoftware.com
>
>


More information about the jCIFS mailing list