在使用contains的时候, 出现了空指针异常,

例如: "Memo".contains(null); 

就会抛出NullPointerException空指针异常.

所以在使用的时候,contains()中的对象不能为null.

相关文章:

  • 2022-12-23
  • 2021-04-04
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2022-01-07
  • 2021-09-24
  • 2021-06-03
  • 2021-11-27
相关资源
相似解决方案