Standalone Harvest client application providing the functionality for capturing and indexing product metadata into the PDS Registry system (https://github.com/nasa-pds/registry).
FIX Possible null pointer exception in idExists(String id), when calling retIds.isEmpty()
UPDATE error message in createSearchIdsRequest() method when ids == null || ids.isEmpty()
🗒️ Summary
In the following code it returns null when (ids == null || ids.isEmpty()).
FIX Possible null pointer exception in idExists(String id), when calling retIds.isEmpty() UPDATE error message in createSearchIdsRequest() method when ids == null || ids.isEmpty()
🗒️ Summary
In the following code it returns
null
when(ids == null || ids.isEmpty())
.However, above method is called by idExists(String id) and it is expecting to have a non-null
retIds
object to callretIds.isEmpty();
.The
getNonExistingIds(Collection<String> ids)
should return an emptySet<String>
instead ofnull
, when(ids == null || ids.isEmpty())
.♻️ Related Issues
Refer to the issue NASA-PDS/harvest#96