-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in DiskShare.openFile(...) and DiskShare.openDirectory #531
Comments
Somehow missed this in my earlier search for issues - looks like it may be the same issue in an earlier version of smbj: #415 |
Also see that #342 (comment) mentions a possible issue when re-using |
I found that the
Closing this in favor of #415 which pre-existed this issue. |
Have the same issue. I don`t reuse the client. Anyone faced? |
Testing against adb73c8, every attempt to open a file or directory always ends up in a
NullPointerException
. Since no-one else has reported this, and it would seem to make the library completely unusable, perhaps there is something atypical about the fileshare I am accessing. But not being very well-versed in the SMB protocol, I am at a loss of where to look, and perhaps smbj has a bug or should give a more informative exception.The
NullPointerException
always occurs in DiskShare.java on line 112, becauseresponse.getFileAttributes()
is null:It is not a total inability to access the share however, because I am able to list folders at the root of the share.
So this works:
But this dies with the
NullPointerException
:And this dies with the
NullPointerException
:The text was updated successfully, but these errors were encountered: