mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Check pointer is initialized before using it
I see a few crash reports that indicate this code is called without a valid ‘bundleItemContent’, though unsure how to reproduce.
This commit is contained in:
@@ -240,7 +240,7 @@ static be::entry_ptr parent_for_column (NSBrowser* aBrowser, NSInteger aColumn,
|
||||
|
||||
- (void)didChangeModifiedState
|
||||
{
|
||||
[self setDocumentEdited:bundleItem && (changes.find(bundleItem) != changes.end() || propertiesChanged || bundleItemContent->is_modified())];
|
||||
[self setDocumentEdited:bundleItem && (changes.find(bundleItem) != changes.end() || propertiesChanged || (bundleItemContent && bundleItemContent->is_modified()))];
|
||||
}
|
||||
|
||||
// ==================
|
||||
|
||||
Reference in New Issue
Block a user