Client Vs Designer execution

So my question is “what is the difference between the Client and the Designer?”

I am asking this because I have made a component that works on the client side but fails to with a NullPointerException in the designer.

I think you’ll need to give us some more details about what you’ve built and what’s going on.