Skip to content

Preferences window crush #13

@antonkuzmin

Description

@antonkuzmin

Line 18: self.tfAdbPath.stringValue = [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH];

if [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH] returns nil, application crushes.

My workaround:
if([[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH] != nil) {
self.tfAdbPath.stringValue = [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions