Or to try/catch them NPE's. Try/catching is good practice, youll need to be adept at it later anyways :). Not to mention the fact that teachers love error-handling.