if there is a problem in ```readElement()``` the method will return nullptr.
you would need to handle this case somehow, either be removing all nullptr entries before creating the mesh or by terminating the read process...