mattn / go-gtk

Go binding for GTK
http://mattn.github.com/go-gtk
BSD 3-Clause "New" or "Revised" License
2.11k stars 247 forks source link

[crash] gtk.AboutDialog.GetAuthors will crash when no authors is set #349

Closed lidaobing closed 6 years ago

lidaobing commented 6 years ago

[crash] gtk.AboutDialog.GetAuthors will crash when no authors is set

import (
        "testing"
       "github.com/stretchr/testify/assert"
 )

func TestAboutDialog_GetAuthors(t *testing.T) {
       Init(nil)
       dialog := NewAboutDialog();
       assert.Equal(t, len(dialog.GetAuthors()), 0);
}