What We've LearnedIn this chapter on the Dangling Composite bug pattern, we've learned the following:
We aren't finished with null pointer dereferences just yet. In Chapter 10, we'll take a look at yet another common bug pattern that manifests itself as a NullPointerException. You'll learn how to recognize this pattern and how to avoid it. |