# HG changeset patch # User Rik # Date 1305506157 25200 # Node ID 69cd5ebe5fb59f16ddbeb6e2f72f5514b0cf5ccb # Parent 2783fa95cab719bdda35c690ca67c12303c11752 Stop obscure warnings when get() called with null matrix input (bug #32642) * graphics.cc (get): Add check for null matrix before attempting to convert arg(0) input to a vector. diff --git a/src/graphics.cc b/src/graphics.cc --- a/src/graphics.cc +++ b/src/graphics.cc @@ -6909,6 +6909,12 @@ if (nargin == 1 || nargin == 2) { + if (args(0).is_empty()) + { + retval = Matrix (); + return retval; + } + ColumnVector hcv (args(0).vector_value ()); if (! error_state)