Version 2.5.3 breaks console application
leofeyer opened this issue · comments
The new ProxyUnreachableException
exception which has been added in 7ca3f9e yesterday breaks my console application. I think it is fine not to have an HTTP cache on the command line, therefore this case needs to be handled differently IMHO.
Imho that's not a bug of FOSHttpCache. Invalidation should just not happen in this case. I mean you now get an exception but before you should have gotten a on a null object
error because it was always null
😄
Then maybe this is a problem of the InvalidationListener
of the bundle?
ah, i think i see the problem. before, we did a loop. if there are 0 elements, the loop would never try to call anything on null
. i think that exception should only be thrown if there are > 0 invalidation messages to be sent. I will make a fix.
fixed in 2.5.4
Wow, you are fast. 👍 Thanks a lot!