Bugfix 11736
authorTon Roosendaal <ton@blender.org>
Sun, 18 May 2008 07:30:51 +0000 (07:30 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 18 May 2008 07:30:51 +0000 (07:30 +0000)
CTRL+Click on "load" for image node crashed.
NULL pointer test missing...

source/blender/src/editnode.c

index 6a703eaabde22a45d8fe411a12407e29f06aebdc..afafc4f2590d409b23aa4bf601387c54fc75db71 100644 (file)
@@ -198,7 +198,7 @@ static int image_detect_file_sequence(int *start_p, int *frames_p, char *str)
        unsigned short numlen;
 
        sfile= scrarea_find_space_of_type(curarea, SPACE_FILE);
-       if(sfile==0)
+       if(sfile==NULL || sfile->filelist==NULL)
                return 0;
 
        /* find first frame */