Skip to content
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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants