Changeset 4821

Show
Ignore:
Timestamp:
06/05/07 15:10:41 (1 year ago)
Author:
morris
Message:

Prevent exception when icon is invalid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCPreferences.m

    r4799 r4821  
    480480                data    = [[NSBitmapImageRep imageRepWithData:[image TIFFRepresentation]] representationUsingType:NSPNGFileType properties:NULL]; 
    481481                string  = [data base64EncodedString]; 
     482                 
     483                if(!string) 
     484                        string = @""; 
    482485        } else { 
    483486                string  = @"";