Changeset 5485

Show
Ignore:
Timestamp:
05/02/08 04:30:38 (2 weeks ago)
Author:
morris
Message:

Don't crash if unable to open movie with no error

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Spiral/trunk/SPApplicationController.m

    r5481 r5485  
    547547 
    548548- (BOOL)openURL:(WIURL *)url withPlaylistFile:(SPPlaylistFile *)file { 
    549         NSError                                 *error
     549        NSError                                 *error = NULL
    550550        QTMovie                                 *movie; 
    551551        SPPlayerController              *controller; 
     
    559559         
    560560        if(!movie) { 
    561                 if(![[controller movieController] isInFullscreen]) 
    562                         [[NSDocumentController sharedDocumentController] presentError:error]; 
     561                if(error) { 
     562                        if(![[controller movieController] isInFullscreen]) 
     563                                [[NSDocumentController sharedDocumentController] presentError:error]; 
     564                } 
    563565                 
    564566                return NO;