mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Guard against no file browser root item when updating modified/open URLs
This commit is contained in:
@@ -439,6 +439,9 @@ static NSMutableIndexSet* MutableLongestCommonSubsequence (NSArray* lhs, NSArray
|
||||
{
|
||||
_modifiedURLs = newModifiedURLs;
|
||||
|
||||
if(!self.fileItem)
|
||||
return;
|
||||
|
||||
NSMutableArray<FileItem*>* stack = [NSMutableArray arrayWithObject:self.fileItem];
|
||||
while(FileItem* item = stack.firstObject)
|
||||
{
|
||||
@@ -453,6 +456,9 @@ static NSMutableIndexSet* MutableLongestCommonSubsequence (NSArray* lhs, NSArray
|
||||
{
|
||||
_openURLs = newOpenURLs;
|
||||
|
||||
if(!self.fileItem)
|
||||
return;
|
||||
|
||||
NSMutableArray<FileItem*>* stack = [NSMutableArray arrayWithObject:self.fileItem];
|
||||
while(FileItem* item = stack.firstObject)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user