CC: | <slaven [...] rezic.de> |
Subject: | Subwidget called on undefined value, Tk::Widget v4.033/4, line 779 |
Date: | Tue, 8 Sep 2009 13:17:54 +0100 |
To: | <bug-Tk [...] rt.cpan.org> |
From: | Michael PARKER <michael.parker [...] st.com> |
Hi,
A bug in v4.033/34 of Tk::Widget results in an undefined value not being caught before an attempt is made to call the Subwidget method on it:
---
Can't call method "Subwidget" on an undefined value at /pd/perl/5.8.8/lib/site_perl/5.8.8/x86_64-linux/Tk/Widget.pm line 779.
results from:
Widget.pm:779> my $prototype = $Tk::___tk_set_palette->Subwidget($w->Class) || undef;
---
It looks as if '$Tk::___tk_set_palette' is undefined (for whatever reason) and no check is made prior to the Subwidget method call attempt.
Reverting to v4.030 of Tk::Widget solves the issue. I'm using v804.028_501 of Tk and Perl v5.8.8.
Cheers,
Mike