Null pointer exception during onCrimeUpdated call


in code I’m getting a null pointer exception. Some reason listFragment is null during the onCrimeUpdated method.
Any ideas why that would occur? The resource is there so I’m not sure why it wouldn’t find it.




Never mind I found the problem. The two pane layout had the resource spelled wrong so it only failed on the tablet. It still found the resource for the smart phone so it looked like it worked.