I’m guessing (which is all we can do in the absence of actual code) that you’re then doing something like droid["hello"]["banana"] = whatever
. While droid
is an initialized map, droid["hello"]
will be nil unless you’ve assigned something to it, hence you would get the above panic.