From 625c559e8dfe786202155cc8453aedad7787c64c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 29 Jun 2016 17:43:37 +0100 Subject: [PATCH] Added null pointer handling --- src/osgPlugins/bsp/VBSPReader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/bsp/VBSPReader.cpp b/src/osgPlugins/bsp/VBSPReader.cpp index 907170951..90fdfa022 100644 --- a/src/osgPlugins/bsp/VBSPReader.cpp +++ b/src/osgPlugins/bsp/VBSPReader.cpp @@ -100,7 +100,9 @@ void VBSPReader::processEntities(std::istream & str, int offset, // Parse the entities startPtr = entities; endPtr = strchr(entities, '}'); - for (i = 0; i < numEntities; i++) + for (i = 0; + (i