Consider this code:
NSURL* url = [NSURL URLWithString:...];
This returns a nullable NSURL, which I want to use here:
[[UIApplication sharedApplication] openURL:url
options:nil
completionHandler:nil];
But alas, openURL requires a non-null url and outputs this warning:
Null passed to a callee that requires a non-null argument
How can this be solved?