Unity is giving me back an error- still lets me run game

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at :0)
UnityEditor.GameObjectInspector.OnDisable () (at :0)
UnityEditor.Tilemaps.GridPaintPaletteClipboard:OnDisable() (at D:/Program Files/2020.3.2f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.tilemap/Editor/GridPaintPaletteClipboard.cs:347)

this is the error- problem is its not with one of my scripts but a unity one
the line of code is:
if (m_Owner && previewUtility != null && previewUtility.camera != null)

If you need more info I will add.
does anyone understand why unity is throwing this up?
Game works just fine also.

I have no idea what is causing that but my editor seems to throw similar errors quite a lot. I also haven’t encountered any issues with the game at runtime.

It’s probably nothing to worry about, though if you really don’t like them I would recommend updating Unity and seeing if the error is still present there.