If a method should return an object which contains a method and you call this method like this
methodReturningAnObject().methodOfTheReturnedObject();
It is possible that the first method returns null.
That would be the same as
null.methodOfTheReturnedObject();
what doesn't realy make sense.
In this cases you get a NullPointerException which tells you that something went wrong.