|
@@ -158,7 +158,8 @@ class DSignatureCertifyDetailViewController: NSViewController, NSTextFieldDelega
|
|
|
|
|
|
let contens = NSMutableArray.init()
|
|
|
for configItem in self.appearanceData!.signatureConfig.contents {
|
|
|
- if configItem.key == NAME_KEY && !_cert.name.isEmpty {
|
|
|
+ let cerName = _cert.name ?? ""
|
|
|
+ if configItem.key == NAME_KEY && !cerName.isEmpty {
|
|
|
let tConfigItem = CPDFSignatureConfigItem.init()
|
|
|
tConfigItem.key = configItem.key
|
|
|
tConfigItem.value = self.cert?.name
|