gwaldron/osgearth — pull request #165 by aurelien35 (2012-06-27 07:33:10+00:00)
Title: Bug fix : check for NULL pointer

Is some circumstances, the _cache member can be NULL and that leads to a crash. For example :

- create a layer (image or elevation)
- do not add it to a map
- do not configure it's caching policy

Then run a TMSPackager::package method on it : it will crash because "_cache" is NULL