young_d807

关注

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

young_d807

关注

阅读 92

2023-04-24


此处报错 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; 

 }

相关推荐

犹大之窗

Flutter错误type 'Null' is not a subtype of type 'Handler'

犹大之窗 25 0 0

kmoon_b426

mybatis plus出现argument type mismatch错误

kmoon_b426 71 0 0

yongxinz

java.lang.IllegalArgumentException: argument type mismatch 错误

yongxinz 33 0 0

zhyuzh3d

@PathVariable映射出现错误: Name for argument type

zhyuzh3d 123 0 0

路西法阁下

undefined 和 null

路西法阁下 111 0 0

禾木瞎写

null 和 undefined

禾木瞎写 123 0 0

朱小落

错误:ERROR Cannot read properties of null (reading ‘type‘)

朱小落 53 0 0

伊人幽梦

Undefined gray values in operator intensity

伊人幽梦 34 0 0

毅会

matlab Invalid Null Argument

毅会 204 0 0

我是小小懒

python报错 argument list too long

我是小小懒 81 0 0

精彩评论(0)

0 0 举报