-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil pointer bug caused by trying to list namespaces with no coll URL
Previously, the code in `listHttp` didn't check whether or not the director response it had actually contained a valid collections URL. Now it checks whether the URL is populated, and if not returns an error with a hint. I've also added very basic unit test coverage for this, but noticed both `listHttp` and `statHttp` could use a lot more. Rather than do that in this bug fix PR, I'll open a followup ticket that targets only these two functions for unit test development.
- Loading branch information
1 parent
5485ba0
commit 50db1e2
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters