sedj is right on...good practice to surround your trim() and parseXXX() methods with try/catch to handle both null AND invalid entries (in your case, non-numeric). Then you can exchange that ugly java generated exception with a more user-friendly message and/or corrective logic.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.