Add nullptr check to SolidLayer constructor (with Bitmap argument)
@@ -24,6 +24,9 @@ namespace carto {
_bitmapScale(1.0f),
_solidRenderer(std::make_shared<SolidRenderer>())
{
+ if (!bitmap) {
+ throw NullArgumentException("Null bitmap");
+ }
}
SolidLayer::~SolidLayer() {
