NullPointerException at SmbFile.getType()

rmillet <[email protected]>
Newsgroups gmane.network.samba.java
Message-ID <CAGM43O3WfE_XXb2LO12Z4aOX9w57cDqwQxyMj1Kb8S+kN7Jvmw@mail.gmail.com>
Hi,

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

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


-- 
rmillet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.