[NUI] Fix some svace issues.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / DirectRenderingGLView.cs
index 79196fa..d98bb17 100644 (file)
@@ -182,7 +182,7 @@ namespace Tizen.NUI.BaseComponents
         {
             unsafe
             {
-                if (textures != null)
+                if (textures != null && textures.Count > 0)
                 {
                     IntPtr unmanagedPointer = Marshal.AllocHGlobal(sizeof(IntPtr) * textures.Count);
                     IntPtr[] texturesArray = new IntPtr[textures.Count];