FrmDatos y FrmExec: Corregir carga de imágenes
This commit is contained in:
@@ -33,7 +33,7 @@ namespace ServerExplorer.UI
|
||||
{
|
||||
if (e.DesiredType == typeof(Image))
|
||||
{
|
||||
if (e.Value is DBNull || ((byte[])e.Value).Length <= 0)
|
||||
if (e.Value is DBNull || (e.Value is byte[] && ((byte[])e.Value).Length <= 0))
|
||||
{
|
||||
e.Value = new Bitmap(1, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user