[jcifs] NullPointerException at SmbFile.getType()

rmillet rmillet42+jcifs at gmail.com
Mon Mar 12 12:59:47 MDT 2012


When i want to get the type of a share, the following code produces a

new SmbFile("smb://MYSERVER/share/", auth).getType()

Exception in thread "main" java.lang.NullPointerException
   at jcifs.smb.SmbFile.getType(SmbFile.java:1285)

Null-object is "service" ("this.tree.service")

It happens when when the auth given contains invalid credentials.
Remote server: Debian with samba 3.4.7.
JCIFS: 1.3.17 patched with GetOwnerSid.patch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20120312/34eb20f5/attachment.html>

More information about the jCIFS mailing list