nuke
nuke copied to clipboard
Guard against IndexOutOfRange exception if change log is empty
List.FindIndex returns -1 if not found. This throws an exception. I added a termination condition if the change log is empty.
I confirm that the pull-request:
- [x] Follows the contribution guidelines
- [x] Is based on my own work
- [x] Is in compliance with my employer