LPS-50474 NPE when uploading a file to an external repository