Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NPE platform.win32.Netapi32Util.getDomainTrusts(Netapi32Util.java:609) #78

Closed
nirving opened this issue May 31, 2012 · 2 comments
Closed

Comments

@nirving
Copy link

nirving commented May 31, 2012

Seems that I am working with some Domain Trusts that do not DNS entries and this is causing some issues because the code assumes that a String will always be returned.
Looking at the lines 609 and 610
@ https://github.com/twall/jna/blob/master/contrib/platform/src/com/sun/jna/platform/win32/Netapi32Util.java
a NPE could be thrown.

@dblock
Copy link
Member

dblock commented May 31, 2012

Looks like a bug. Appreciate a pull request with a fix, please.

dblock added a commit to dblock/jna that referenced this issue Jun 9, 2012
@dblock
Copy link
Member

dblock commented Jun 9, 2012

Took care of it, 501dc90.

@dblock dblock closed this as completed Jun 9, 2012
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants