I do not know for what reason this wont qualify as an answer. When i check to code in Intelli J, enter e few numbers, the minimum is printed after hitting Enter on an empty field, yet here i not only get a NullPointerException but also it wont validate. Any thoughts ?