diff options
Diffstat (limited to 'swift/src')
-rw-r--r-- | swift/src/Ice/CommunicatorI.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swift/src/Ice/CommunicatorI.swift b/swift/src/Ice/CommunicatorI.swift index 6d03cfce515..d44942b10e2 100644 --- a/swift/src/Ice/CommunicatorI.swift +++ b/swift/src/Ice/CommunicatorI.swift @@ -168,7 +168,7 @@ class CommunicatorI: LocalObject<ICECommunicator>, Communicator { func createAdmin(adminAdapter: ObjectAdapter?, adminId: Identity) throws -> ObjectPrx { return try autoreleasepool { - let handle = try _handle.createAdmin((adminAdapter as! ObjectAdapterI)._handle, + let handle = try _handle.createAdmin((adminAdapter as? ObjectAdapterI)?._handle, name: adminId.name, category: adminId.category) // Replace the iniData.adminDispatchQueue with the dispatch queue from this adapter |