NullPointerException in DefaultFormatter when source is null

NullPointerException in DefaultFormatter when source is null