diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-10 23:34:35 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-10 23:34:35 +0300 |
commit | 84e3b2d72640d68c86e069e1caca25deea53a28b (patch) | |
tree | 9229045475bfa89ca68078fea58598f49194c215 /source/blender | |
parent | 0797054c2d2744007d5f88662a89bc8937fc20bb (diff) |
NULL pointer check to prevent some crash in background mode
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 5bde6e029e4..453f16239fe 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -148,7 +148,7 @@ RegionView3D *ED_view3d_context_rv3d(bContext *C) if(rv3d==NULL) { ScrArea *sa =CTX_wm_area(C); - if(sa->spacetype==SPACE_VIEW3D) { + if(sa && sa->spacetype==SPACE_VIEW3D) { ARegion *ar; for(ar= sa->regionbase.first; ar; ar= ar->next) if(ar->regiontype==RGN_TYPE_WINDOW) |