Getting NullReferenceException even tho everything is assigned?

In future post your code in code tags: Using code tags properly

If you look at any object that doesn’t have an Outline component you’re going to run right into a null-ref.

You should probably use TryGetComponent instead so you can direct your code around whether the component is there or not: Unity - Scripting API: Component.TryGetComponent