Question: I am currently using Swift and Parse and have run into an issue which I haven't been able resolve for the past several hours.

On a button click, I am attempting to add an Employee object to an Event object's eventAttendee's array.

```
@IBAction func joinEvent(sender: AnyObject) {
    var employee = Employee.currentUser()
    employee.events.append(event)
    employee.saveInBackgroundWithBlock(nil)

    event.eventAttendees.append(employee)
    event.saveInBackgroundWithBlock(nil)
}

```

The event is added to the employee events, but the employee is not added to the event attendees list. The function throws a EXC\_BAD\_ACCESS (code=1, address=0x0) on the append(employee) line, with no other error message. 

My event class looks like this: 

```
class VolunteerEvent : PFObject, PFSubclassing {

@NSManaged var eventName: String
@NSManaged var dateOfEvent: NSDate
@NSManaged var eventDescription: String
@NSManaged var eventURL: String?
@NSManaged var eventImage: PFFile

@NSManaged var contactEmail: String
@NSManaged var contactPhone: NSNumber

@NSManaged var eventOrganizer: Employee
@NSManaged var eventAttendees: [Employee]

class func parseClassName() -> String {
    return "VolunteerEvent"
}
}

```

My Employee class extends PFUser, although when I print out the description of my employee I get that it is a PFUser. I can't tell if this is the issue. When I print out the event, it looks like I expect it to look. I also tried switching the eventAttendees to be an array of PFUser's instead of Employee's, but that didn't work either.

Any help would be much appreciated. Thank you.

Answer: 
```
./script one '' oops

```

`[ $2 ]` will be false when `$2` is the empty string.

And as [that other guy](https://stackoverflow.com/users/1899640/that-other-guy) points out in a comment, bash will split both strings, opening up a range of issues, including potential security holes.
This is clearer:

```
if [ $# != 1 ] ; then
    echo "Usage: only one var."; exit 1
fi

```