My error reads
Exception in thread "main" java.lang.NullPointerException
at Phonebook.main(Phonebook.java:41)

I also know this error occurs again at lines 45 and 49

here is my code
...