java.lang.NullPointerException at com.codegym.task.task07.task0726.Solution.main(Solution.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) I see its around the if(name.isEmpty()){ break}; line. I have tried using if(name == " "){ break;} and several other options with no luck.