Fix Serialize method for Attribute Table to return NULL when no rows or columns
|Reported by:||gillins||Owned by:||ilucena|
Currently gdalinfo shows a "<GDALRasterAttributeTable />" node for each band when there is nothing in the RAT.
The problem is that with the RFC40 changes the HFA driver always returns something from GetDefaultRAT even if it is an empty table - you can now start writing data directly into the table with the returned object.
Attached is a patch to prevent the Serialize() method returning anything when the row and column count is zero