I already know what is causing this error, I just do not know how to handle the case when a user doesn\'t enter anything into the dialogue box, then hit the button which par
Some code would help with the syntax but basically
if ("".equals(text) // where text is the text that you get from an EditText or wherever you get it { // give message to enter valid text; }
Also, you can surround with a try/catch and catch a numberFormatException then print an appropriate message
try/catch