Skip to content

Commit 7ce1dcd

Browse files
committed
Fixed "Cannot read property '1' of null"
1 parent 6c4c674 commit 7ce1dcd

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
@@ -227,7 +227,7 @@ export class Repository {
227227
/<url>(.*?)\/(trunk|branches|tags).*?<\/url>/
228228
);
229229

230-
if (match[1]) {
230+
if (match && match[1]) {
231231
repoUrl = match[1];
232232
}
233233

0 commit comments

Comments
 (0)