Itseez/opencv — pull request #3489 by woozzu (2014-12-06 12:01:25+00:00)
Title: Added assert statement for checking null data variable when initializing

Sometimes people make a mistake that is initializing Mat object with external data variable actually null.
It is helpful to check if data is null before creating Mat object.