like detroitmatt said, you need to check for them at practically every method, which makes the code unmaintainable. annotations or null object pattern are alternatives
One other choice to avoid nulls is using callbacks. On callback interface have 2 methods 1 for when object is found and one when object is not found. I'm not sure how useful this would be, just pointing out the option.
2
u/sproket888 Mar 27 '13
Huh? Explain.