数据库表有NULL值时登陆出现Runtime Error!该怎么处理

数据库表有NULL值时登陆出现Runtime Error! - C++ Builder / Windows SDK/API
Employee_addr Employee_postcode         Employee_notes             Login_name                   Login_password
丰台                             100071                           无                               kele                       Kekedou521
NULL NULL                           NULL                                 hello                       kekedou                


系统用户数据库如上图,第二行(也就是keke所在行)中有NULL值,当用第一行(也就是kele)登录时,成功登陆,可用第二行(也就是hello)登陆时,失败,


提示Runtime   error!   ...this   application   has   requested   the   Runtime   to   terminate   it   in   an   unusual   way.please   contact   the   application 's   support   team   fro   more   information

------解决方案--------------------
没判断非NULL就读取了
------解决方案--------------------

Login_name=NULL;
Login_password=NULL; 
出现Runtime Error是与你在程序中对Login_name、Login_password进行比较处理时没进行非空判断有关系的