-
Notifications
You must be signed in to change notification settings - Fork 244
NPE in canCompleteSwap if path doesn't exists #3069
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently when we call baseAccessor.getChildNames and if the path doesnt exists, swapOutResources is null, and we iterate over this which results in NPE
"error" : "Cannot invoke \"java.util.List.iterator()\" because \"swapOutResources\" is null"
}
To Reproduce
Hit canCompleteSwap Rest and manually corrupt the path.
Expected behavior
NPEs should be handled, it should return true in this case as well.
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working