You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When :middleware in SenteHandler is nil, Handler is throwing a NullPointerException on L37. If I change :middleware key in SenteHandler to anything else, such as :mw, Handler does not throw an exception. Handler seems to be searching for middleware in transient dependencies by checking for the :middleware key.
While this is fairly easy to work around, would it make things more robust to check the type of the component instead or checking for keywords that are not namespaced? Something like (instance? Middleware component)? I've thrown together a simple PR and it seems to work.
The text was updated successfully, but these errors were encountered:
I have a component that has its own middleware:
I am also using the
system.component.handler/Handler
component. MySenteHandler
is a transient dependency of thesystem.components.handler/Handler
:When
:middleware
inSenteHandler
isnil
,Handler
is throwing aNullPointerException
on L37. If I change:middleware
key inSenteHandler
to anything else, such as:mw
,Handler
does not throw an exception.Handler
seems to be searching for middleware in transient dependencies by checking for the:middleware
key.While this is fairly easy to work around, would it make things more robust to check the type of the component instead or checking for keywords that are not namespaced? Something like
(instance? Middleware component)
? I've thrown together a simple PR and it seems to work.The text was updated successfully, but these errors were encountered: