我正在尝试使用 exists
方法检查 Redis 数据库中的键:
redis.exists(searchuid)
但我得到以下错误
错误:
Caused by: java.lang.NullPointerException
最佳答案
redis
或 searchuid
为 null。
关于scala - 调用 Redis 方法时出现 NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44656512/