NullPointerException on Ctrl+D problem worked out