In YKFManagerDelegate you define a didFailConnectingNFC function with _Nonnull error.
But in fact, we found that in some cases it called this with nil.
We use the YubiKit in Swift, and because of _Nonnull definition, delegate implementers will create corresponding methods based on (NSError *_Nonnull)error; like this:
Then, it will causes a crash.
How it happened
After turning on the scan, I quickly used the yubikey card to get close to the phone, and then quickly removed it. After trying a few more times, I entered the breakpoint in the first picture.
Description
Here is a bug report.
In
YKFManagerDelegate
you define adidFailConnectingNFC
function with_Nonnull
error. But in fact, we found that in some cases it called this with nil.We use the YubiKit in Swift, and because of
_Nonnull
definition, delegate implementers will create corresponding methods based on(NSError *_Nonnull)error;
like this: Then, it will causes a crash.How it happened
After turning on the scan, I quickly used the yubikey card to get close to the phone, and then quickly removed it. After trying a few more times, I entered the breakpoint in the first picture.
Please fix this issue.