a few possible uncaught null pointer exceptions.  Check for null before attempting to access the object