bugGNUstep - Bugs: bug #34468, -[NSBundle URLForResource*]...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34468: -[NSBundle URLForResource*] methods bugged

Submitted by:  julian <julian_>
Submitted on:  Mon 03 Oct 2011 08:29:26 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 04 Oct 2011 11:48:58 AM UTC, comment #2:

thanks, fix confirmed.

julian <julian_>
Tue 04 Oct 2011 05:52:06 AM UTC, comment #1:

Thanks very much ... I fixed that along with the related issue of the NSURL methods not raising an NSInvalidArgumentException when passed nil.

Richard Frith-Macdonald <CaS>
Project Member
Mon 03 Oct 2011 08:29:26 PM UTC, original submission:

-[NSBundle URLForResource*] return the path to the directory where the main bundle resides instead of "nil" for resources that don't exist.

of course nil should be returned for inexistent resources

the root of the bug is that [NSURL fileURLWithPath] in the expectation that it would return nil for a nil path but that isn't true

trivial patch attached

julian <julian_>

 

Attached Files
file #24090:  fix.diff added by julian_ (813B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 04 Oct 2011 05:52:06 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 03 Oct 2011 08:29:26 PM UTCjulian_Attached File-=>Added fix.diff, #24090

    Back to the top


    Powered by Savane 3.1-cleanup1