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:
Felipe A. Rodriguez 1998-07-12 15:15:36 +00:00
parent 8f5db092d8
commit f07bf17280

View file

@ -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;
}