dskit icon indicating copy to clipboard operation
dskit copied to clipboard

Fix a random crash

Open merzal opened this issue 4 years ago • 3 comments

I got random crashes from time to time in DSKit. I've investigated the issue and I found that an Unexpectedly found nil while implicitly unwrapping an optional value error could happen at this point:

Screenshot 2022-10-01 at 10 43 24

In this PR I tried to prevent the crash (but not the real issue -> that's probably a bigger issue).

merzal avatar Oct 03 '22 07:10 merzal

I see that CircleCI could not build the changes. The problem is that in my changes I've used Swift 5.7 feature (https://www.hackingwithswift.com/swift/5.7/if-let-shorthand) and CircleCI tries to (very probably) use an older Swift version. So there are 2 possible solutions to this:

  1. I change my code to be compatible with an older version of the Swift
  2. You change the settings of CircleCI to be able to use Swift 5.7 features

Which way do you prefer? Thanks!

merzal avatar Oct 03 '22 07:10 merzal

Screenshot 2022-10-10 at 10 42 40

@merzal I have tried to upgrade, but unsuccessfully, let's go with the first option for now.

imodeveloper avatar Oct 10 '22 07:10 imodeveloper

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Oct 24 '22 13:10 sonarqubecloud[bot]

Okay, done. @imodeveloper

merzal avatar Oct 24 '22 13:10 merzal