Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLookup.run can exit and the state can be not done causing an exception in checkDone #137
Comments
|
I believe this shows up when the list of search domains is an array of size zero. |
|
A related item, you may want to make it clear which calls to setDefaultSearchDomains accept null and possibly have one separate method to set the value to null explicitly, something like clearDefaultSearchDomains. |
|
3.3.0 contains a fix (#118) relating to search domains and Lookup.run. Have you tried that? |
|
It looks like using version 3.3.0 fixes the problem when the search domains is an array of size zero. |
The method
Lookup.runcan exit with done still set to false and this causes errors in methods that call it. In my case I have this stack trace using dnsjava 3.2.2. Here the call toLookup.runinAddress.getByNamereturned null. However since there isn't an else statement in the if/else insideif(!done)ofLookup.runit's possible for the method to exit withdoneset to false and thenLookup.checkDonethrows an exception even thoughLookup.runhas completed.