首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

异常The operator != is undefined for the argument type(s) long, null

2012-09-09 
错误The operator ! is undefined for the argument type(s) long, null此处报错 if (users.getUsersid()

错误The operator != is undefined for the argument type(s) long, null

此处报错 if (users.getUsersid() != null)
The operator != is undefined for the argument type(s) long, null

通过Ctrl+左键找到错误源
private long usersid;
public long getUsersid() {
return this.usersid;
}
应该是Long
改正之后
private Long usersid;
public Long getUsersid() {
return this.usersid;
}

热点排行