Crash when placing a texture

When I place a material on a piece of geometry, the engine crashes.

LoginId:e913312e42514c9106d8f3864c4af52c
EpicAccountId:f5f3783289fa46a38debe2a280bb0ab7

Assertion failed: !BatchElement.IndexBuffer || (BatchElement.IndexBuffer && BatchElement.IndexBuffer->IsInitialized() && BatchElement.IndexBuffer->IndexBufferRHI) [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Renderer\Private\MeshPassProcessor.cpp] [Line: 697]

UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

Well, I just fixed it somehow. The pivot point on the geometry was way off, so I centered it and set it as the pivot point. Tried texturing it again and no crash.