Sign up

assertion 'text != NULL' failed

(moneylog:12208): Gtk-CRITICAL **: 20:33:53.531: gtkentryset_text: assertion 'text != NULL' failed

I get the above error with using Entry's widget setText, if the variable is set to nothing.

//(in a class..)
string shop() { return _shop; }
shop(string shop0) { return _shop=shop0; }

...

// this is a work around
if (shop != "")
    shopEntry.setText = shop;
 else
    shopEntry.setText = "";

Re: assertion 'text != NULL' failed

On Tue, 02 Jun 2020 08:52:11 GMT, Joel Christensen wrote:

(moneylog:12208): Gtk-CRITICAL **: 20:33:53.531: gtkentryset_text: assertion 'text != NULL' failed

I get the above error with using Entry's widget setText, if the variable is set to nothing.

//(in a class..)
string shop() { return _shop; }
shop(string shop0) { return _shop=shop0; }

...

// this is a work around
if (shop != "")
    shopEntry.setText = shop;
 else
    shopEntry.setText = "";

*string shop(string shop0) ..