File opencv-erroneous_test.patch of Package opencv
--- cv/src/cvhistogram.cpp
+++ cv/src/cvhistogram.cpp
@@ -2157,9 +2157,6 @@
if( !CV_IS_HIST(hist))
CV_ERROR( CV_StsBadArg, "Bad histogram pointer" );
- if( !img )
- CV_ERROR( CV_StsNullPtr, "Null double array pointer" );
-
if( norm_factor <= 0 )
CV_ERROR( CV_StsOutOfRange,
"Bad normalization factor (set it to 1.0 if unsure)" );