Assertion failed on expression: 'type != NULL'

Hi everyone! Anyone know what this error means?

• Unity Version: 5.6.2p1 (but it gives the same error on earlier 5.x versions)

• Unity gives this error when it opens

• I think it is an Engine internal error (c++)

• I’m using “A* Pathfinding Project” Plugin (maybe it can help for an answer)

• I’m using some shader effects from Standard Assets (maybe it can help for an answer)

• As you can see from the picture below, it show only the message I mentioned as in the title of my question:

![1]

I found the problem was on a editor script, I commented it and now it works. I think the problem is about bitflags bad usage I don’t know…

public class NodeGizmoDrawer
{
    [DrawGizmo(GizmoType.Selected | GizmoType.Active)]
    static void DrawGizmoForMyScript(POI hNode, GizmoType gizmoType)
    {
        RaycastHit vHit;
        Ray vRay = new Ray(SceneView.lastActiveSceneView.camera.transform.position, SceneView.lastActiveSceneView.camera.transform.forward);
        if (Physics.Raycast(vRay, out vHit))
        {
            Gizmos.DrawSphere(vHit.point, 1.0f);
        }
    }
}