From ee2fd9311ce26a43664bcb3d916556bd4f8af4a8 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Tue, 15 May 2007 20:55:28 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/gobj/geomVertexArrayData.I | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/gobj/geomVertexArrayData.I b/panda/src/gobj/geomVertexArrayData.I index 046cfc0014..fd6a4f7a83 100644 --- a/panda/src/gobj/geomVertexArrayData.I +++ b/panda/src/gobj/geomVertexArrayData.I @@ -391,6 +391,9 @@ INLINE unsigned char *GeomVertexArrayDataHandle:: get_pointer() { nassertr(_writable, NULL); check_resident(); + if (_cdata->_data.size() == 0) { + return NULL; + } return &_cdata->_data[0]; }