线上tinyint(1) unsigned引起的问题

线上napoli的machines表中recoverable字段使用的是 tinyint(1) unsigned类型,default值为NULL,具体如下
---------------------+ ---------------------+------+-----+---------+----------------+
| Field                             | Type                                | Null | Key | Default | Extra                    |
+ ---------------------+---------------------+------+-----+---------+----------------+
| recoverable                 | tinyint(1) unsigned | YES    |         | NULL        |                                |

TINYINT[(M)] [UNSIGNED] [ZEROFILL]
很小的整数。 TINYINT:带符号的范围是-128到127。TINYINT UNSIGNED:无符号的范围是0到255
  当为NULL值读入程序中,程序上未做处理,产生了空指针异常。