I'm getting the null argument shader error message.

I’m getting the “Argument cannot be null. Parameter name: shader” message and the line the code was supposed to draw does not appear. The code this refers to is:

lineRenderer.material = new Material(Shader.Find(“Particles/Additive”));

It worked just fine in Unity 2017 but now I’m in Unity 2018.3.1 What do I need to change so it works with the 2018 Unity?

The solution I used was to create a material, define it in the script and then drop it in in the inspector.