Prevent segfault when opening file browser while a 2.79 file was loaded.
Loading a file that was written with the master branch into the 2.8 branch, and then trying to load or save, caused a segfault.
This commit is contained in:
@@ -1150,7 +1150,7 @@ static bScreen *screen_fullscreen_find_associated_normal_screen(const Main *bmai
|
||||
{
|
||||
for (bScreen *screen_iter = bmain->screen.first; screen_iter; screen_iter = screen_iter->id.next) {
|
||||
ScrArea *sa = screen_iter->areabase.first;
|
||||
if (sa->full == screen) {
|
||||
if (sa && sa->full == screen) {
|
||||
return screen_iter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user