Show
Ignore:
Timestamp:
03/02/10 17:27:54 (2 years ago)
Author:
gbooker
Message:

Make sure the data is not nil before replacing it in an array.
Fixes #358

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/MetaDataImporting/SapphirePosterChooser.m

    r1179 r1198  
    215215        if(displayed) 
    216216                [self reloadPosterWithData:data atIndex:[index intValue]]; 
    217         else 
     217        else if(data != nil) 
    218218                [posterData replaceObjectAtIndex:[index intValue] withObject:data]; 
     219        else 
     220                [posterData replaceObjectAtIndex:[index intValue] withObject:[NSData data]]; 
    219221} 
    220222