Add checks for NULL pointer in arrays.
Fixes: Bug 599197 - array ref and unref functions crash on NULL array. * garray.c: Added safety guards to all public functions, which did not have them earlier. Now when NULL is passed to them, they will issue a warning and return, instead of segfaulting.
Showing with 21 additions and 0 deletions