Merge pull request #761 from davidgyu/stencilFactoryFix

Fixed potential crash in Far::StencilTableFactory
This commit is contained in:
Jeremy Cowles 2015-12-11 10:56:29 -08:00
commit b3213df0a1

View File

@ -212,7 +212,8 @@ StencilTableFactory::AppendLocalPointStencilTable(
// factorize and append.
if (baseStencilTable == NULL or
localPointStencilTable == NULL) return NULL;
localPointStencilTable == NULL or
localPointStencilTable->GetNumStencils() == 0) return NULL;
// baseStencilTable can be built with or without singular stencils
// (single weight of 1.0f) as place-holders for coarse mesh vertices.