TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Top 5 Crashes on iOS

20 pointsby andrewmlevyabout 9 years ago

1 comment

makecheckabout 9 years ago
The first example’s remedy seems to be wrong.<p>I am not aware of any reason to test for &quot;nil&quot; in Objective-C, as that remedy suggests. Sending the &quot;doSomething&quot; message to &quot;nil&quot; should do nothing.<p>If SIGSEGV does occur for an object, it is probably for the exact opposite reason: you have a pointer that is NOT &quot;nil&quot; but it refers to something that has been freed. (Or, the SIGSEGV is not related to objects at all, and is caused by some other access such as plain C code.)