Converting NSURL to String results in a crash

Originator:Vytis
Number:rdar://24106109 Date Originated:08-Jan-2016 02:27 PM
Status:Duplicate of 20994129 (Open) Resolved:
Product:iOS SDK Product Version:9.2
Classification:Serious Bug Reproducible:Always
 
Summary:

Crash when making a String from NSURL that was initialized with the default initializer NSURL()

Steps to Reproduce:
Add this code to an empty playground:

import UIKit
String(NSURL())

Expected Results:
Playground shows the result of expression - probably an empty string would make sense

Actual Results:
An error is displayed:
Playground execution aborted: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!