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:
Sybren A. Stüvel
2018-05-08 11:18:21 +02:00
parent faaffc4011
commit 271624b0f6

View File

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