Orleans.Redis icon indicating copy to clipboard operation
Orleans.Redis copied to clipboard

Regular null reference exceptions

Open BogdanovKirill opened this issue 2 years ago • 1 comments

It seems you should inspect all methods that you call at StackExchange.Redis. For example:

RedisValue[] values = await _db.SortedSetRangeByValueAsync(RemindersRedisKey, from, to);
if (values.Length == 0)

Wrapper could return null and you will get NRE. That's very bad.

Check here: https://github.com/OrleansContrib/Orleans.Redis/blob/ecc5cfa78e08fda597b3eb8958d91b6866c34081/src/Orleans.Reminders.Redis/RedisReminderTable.cs#L63

BogdanovKirill avatar Jul 05 '22 19:07 BogdanovKirill

Any news? Should I make pull request for you?

BogdanovKirill avatar Jul 27 '22 07:07 BogdanovKirill