[jcifs] NullPointerException instead of SmbException
Michael B Allen
mba2000 at ioplex.com
Wed Nov 29 17:21:39 GMT 2006
Yup. This is fixed in 1.2.11b.
On Wed, 29 Nov 2006 08:33:39 +0200
DrZubr <DrZubr at tut.by> wrote:
> Sometimes jcifs throws NullPointerException at
> DcerpcPipeHandle.close()
> May be it is a good idea to replace
>
> out.close();
>
> with
>
> if (out != null) {
> out.close();
> }
>
> ?
>
> For example this exception is thrown when listFiles() fails with
> "Access denied" exception. At DcerpcPipeHandle.doSendFragment
> exception is thrown at
> in = (SmbFileInputStream) pipe.getNamedPipeInputStream();
> and out is not initialized, and then we are trying to close it - and
> receive NullPointerException instead of SmbException.
>
--
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/
More information about the jcifs
mailing list