Look at line 13 in Maze for a null value. The java program expects a non-null value there.
Read the API doc to see if you are using the method correctly or if you should use another method.