Avoid input text to where should be a number

I judge whether it is `int', and if not, deal with it as NULL
Merge branch 'tmp'
Merge branch 'tmp'