redisson icon indicating copy to clipboard operation
redisson copied to clipboard

RedissonBlockingQueue.take() returns null in case of internal error

Open 0x0000-dot-ru opened this issue 9 years ago • 5 comments

The take() method in RedissonBlockingQueue uses Future.getNow(), which returns null if an exception occurs. In our case, we have tons of NPEs when the application is stopped.

0x0000-dot-ru avatar Oct 12 '17 17:10 0x0000-dot-ru

What does queue consists of? Number?

mrniko avatar Oct 12 '17 18:10 mrniko

We use POJO in the queue.

0x0000-dot-ru avatar Oct 13 '17 10:10 0x0000-dot-ru

I think @0x0000-dot-ru meant 'which returns null if an exception occurs'

stfnio avatar Oct 13 '17 13:10 stfnio

Thank you @stfnio, that's what I meant. I fixed the message.

0x0000-dot-ru avatar Oct 19 '17 09:10 0x0000-dot-ru

Fixed

mrniko avatar Oct 20 '17 14:10 mrniko