Mac OS X 10.10: Sharing Preference Pane: Crash on setting empty hostname

Originator:igeek1
Number:rdar://18776437 Date Originated:26-Oct-2014 03:20 PM
Status:Duplicate of 18731652 Resolved:30-Oct-2014 00:40 AM
Product:OS X Product Version:Mac OS X 10.10 (14A389)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
The Sharing preference pane crashes if you try to set a hostname of “” (empty string).

Steps to Reproduce:
1. Open System Preferences.
2. Select Sharing.
3. At the top, under Computer Name, click the Edit button.
4. Delete the text that is in the field, so you are left with “.local” (just the permanent suffix).
5. Click OK or press Return.

Expected Results:
The dialog dismisses if this is a valid action, or some sort of error or warning message is presented (“The hostname cannot be empty” or the OK button is disabled while the text field is empty).

Actual Results:
The Sharing preference pane crashes, and you go back to the “Show All” view in System Preferences with a dialog titled “Preferences Error” and the message “There was an error in Sharing Preferences.”

Regression:
unknown

Notes:
none

Attachments: crash log: http://cl.ly/YEwT

Comments

Regression check: @dirk_gently on twitter reports that it does not crash in Mavericks.


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!