diff --git a/common/simple_vg.cpp b/common/simple_vg.cpp
index 64192ac44fdeb77cbca78e8f14ed1608e0273c44..e201f45319304c65f8d34f04c82186435036485f 100644
--- a/common/simple_vg.cpp
+++ b/common/simple_vg.cpp
@@ -75,6 +75,7 @@ bool framebuffer::create(const canvas& canvas)
 			support::to_integer(flags)
 		)
 	);
+	assert(raw && "nanovg framebuffer must not be null");
 	return true;
 }