mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
added check for a valid view in NSView's _pathBetweenSubview... method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8f5db092d8
commit
f07bf17280
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ static NSRecursiveLock *gnustep_gui_nsview_lock = nil;
|
|||
NSMutableArray* array = [NSMutableArray array];
|
||||
NSView* view = subview;
|
||||
|
||||
while (view != _superview) {
|
||||
while (view && view != _superview) {
|
||||
[array addObject:view];
|
||||
view = view->super_view;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue