Skip to content

Commit 70bd91f

Browse files
authored
Merge pull request #49 from edgardmessias/fix_45
Fixed "Cannot read property '1' of null" (Close #45)
2 parents e101a68 + 7ce1dcd commit 70bd91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export class Repository {
400400
/<url>(.*?)\/(trunk|branches|tags).*?<\/url>/
401401
);
402402

403-
if (match[1]) {
403+
if (match && match[1]) {
404404
repoUrl = match[1];
405405
}
406406

0 commit comments

Comments
 (0)