Commit 6c8fcf46 authored by agurov's avatar agurov

NPE in SVNRepositoryLocation.asRepositoryContainer [ID-W6HFD] (bug 477111)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=477111

git-svn-id: https://dev.eclipse.org/svnroot/technology/org.eclipse.subversive/trunk@21504 ee007c2a-0a25-0410-9ab9-bf268980928c
parent 1e5016c1
......@@ -356,7 +356,7 @@ public class SVNRepositoryLocation extends SVNRepositoryBase implements IReposit
IPath urlPath = SVNUtility.createPathForSVNUrl(url);
String name = urlPath.lastSegment();
if (location.isStructureEnabled()) {
if (name != null && location.isStructureEnabled()) {
boolean regularFolder = false;
if (name.equals(location.getTrunkLocation()) || name.equals(location.getTagsLocation()) || name.equals(location.getBranchesLocation())) {
IPath tPath = SVNUtility.createPathForSVNUrl(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment