mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-06 00:00:03 +08:00
Fix crash if empty data was provided
This commit is contained in:
@@ -219,7 +219,7 @@ NSString *const OpenVPNTLSCertProfileDefaultValue = @"default";
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)setFileContent:(NSData *)fileContent {
|
- (void)setFileContent:(NSData *)fileContent {
|
||||||
_config.content = fileContent ? std::string((const char *)fileContent.bytes) : "";
|
_config.content = fileContent.length ? std::string((const char *)fileContent.bytes) : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary<NSString *,NSString *> *)settings {
|
- (NSDictionary<NSString *,NSString *> *)settings {
|
||||||
|
|||||||
Reference in New Issue
Block a user