bugGNUstep - Bugs: bug #19588, Application crash when NSIcon is...

Group
 
 

bug #19588: Application crash when NSIcon is empty in property list

Submitter:  -Deleted Account- <yjchen>
Submitted:  Sat 14 Apr 2007 04:50:44 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 15 Apr 2007 09:23:58 AM UTC, comment #1: 

Fixed in svn ... I modified NSBundle to accept a nil/empty resource name (which is what MacOS-X does).

Richard Frith-Macdonald <CaS>
Group Member
Sat 14 Apr 2007 04:50:44 AM UTC, original submission:  

There are NSIcon and ApplicationIcon in application's property list  : [Application name]Info.plist.
I notice that if the value is empty for application A, ex. NSIcon="";, application B will crash when they use [NSWorkspace iconForFile] for application A.
More specifically, [NSWorkspace iconForFile: path_to_application] will fail if the specified application has a property list in which NSIcon = ""; and ApplicaitonIcon = "";.
If the value is any random string, it will be fine.
I attach a test application. You can play with testInfo.plist and see .

-Deleted Account- <yjchen>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #12478:  junk.tar.gz added by yjchen (700B - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by yjchen (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-04-15 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2007-04-14 yjchen Attached File- Added junk.tar.gz, #12478

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code