matplotlib/matplotlib — pull request #2993 by jkseppan (2014-04-19 15:50:38+00:00)
Title: Avoid a null-pointer dereference in _tri.cpp

Found using the clang static analyzer:
if PyArray_ContiguousFromObject returns NULL,
PyArray_NDIM(x) causes a null-pointer dereference.

@ianthomas23: could you review this?