Index: trunk/src/gl/gl_device.cc
===================================================================
--- trunk/src/gl/gl_device.cc	(revision 116)
+++ trunk/src/gl/gl_device.cc	(revision 120)
@@ -74,4 +74,9 @@
 	load_sdl_image_library();
 	SDL_Surface* image = IMG_Load( filename.c_str() );
+	if (!image)
+	{
+		NV_LOG( LOG_ERROR, "Image file " << filename.c_str() << " not found!" );
+		return nullptr;
+	}
 	image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels );
 	return data;
