Hi,<br><br>When i want to get the type of a share, the following code produces a NullPointerException:<br><br>new SmbFile("smb://MYSERVER/share/", auth).getType()<br><br>Exception in thread "main" java.lang.NullPointerException<br>



    at jcifs.smb.SmbFile.getType(SmbFile.java:1285)<br>
<div id=":11c">
    ....<br>
  <br>Null-object is "service" ("this.tree.service")<br>
</div><br>It happens when when the auth given contains invalid credentials.<br>Remote server: Debian with samba 3.4.7.<br>JCIFS: 1.3.17 patched with GetOwnerSid.patch<br><br><br>-- <br>rmillet<br><br>