svn: Fix null trunk url processing while reading branch configuration

IDEA-190935
This commit is contained in:
Konstantin Kolosovsky
2018-05-03 22:31:43 +03:00
parent f7198376ce
commit 5326cb7d52
@@ -124,7 +124,7 @@ class SvnBranchConfigurationManager(private val myProject: Project,
else null
val result = SvnBranchConfigurationNew().apply {
// trunk url could be either decoded or encoded depending on the code flow
trunk = addUserInfo(persistedConfiguration.trunkUrl, true, userInfo)
trunk = persistedConfiguration.trunkUrl?.let { addUserInfo(it, true, userInfo) }
isUserInfoInUrl = persistedConfiguration.isUserinfoInUrl
}