[Bug 463800] New: Inconsistent handling of missing widgets (YCPNull) in calls
https://bugzilla.novell.com/show_bug.cgi?id=463800 Summary: Inconsistent handling of missing widgets (YCPNull) in calls Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: YaST2 AssignedTo: mvidner@novell.com ReportedBy: mvidner@novell.com QAContact: jsrain@novell.com CC: sh@novell.com Found By: --- Created an attachment (id=263372) --> (https://bugzilla.novell.com/attachment.cgi?id=263372) parameter-eval-failed.ycp In bug 463796 I was surprised by the different handling of a missing widget by - a variable - a function call - a builtin The attached code produces: [YCP] martin/parameter-eval-failed.ycp:5 ITEM Fu [ui] YWidget.cc(findWidget):611 THROW: No widget with ID `bar [ui] YCP_UI.cc(QueryWidget):762 CAUGHT: No widget with ID `bar [libycp] martin/parameter-eval-failed.ycp:12 UI::QueryWidget failed: UI::QueryWidget( `id (`bar), `Value ) [YCP] martin/parameter-eval-failed.ycp:5 ITEM nil [ui] YWidget.cc(findWidget):611 THROW: No widget with ID `bar [ui] YCP_UI.cc(QueryWidget):762 CAUGHT: No widget with ID `bar [libycp] martin/parameter-eval-failed.ycp:15 UI::QueryWidget failed: UI::QueryWidget( `id (`bar), `Value ) [Interpreter] martin/parameter-eval-failed.ycp:15 Parameter eval failed (QueryWidget (`id (`bar), `Value)) [ui] YWidget.cc(findWidget):611 THROW: No widget with ID `bar [ui] YCP_UI.cc(QueryWidget):762 CAUGHT: No widget with ID `bar [libycp] martin/parameter-eval-failed.ycp:17 UI::QueryWidget failed: UI::QueryWidget( `id (`bar), `Value ) [YCP] martin/parameter-eval-failed.ycp:17 ITEM <NULL> [YCP] martin/parameter-eval-failed.ycp:19 it should have logged 4 ITEMs. bye I would expect three "ITEM nil" instead. Stefan, JFYI. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463800
Martin Vidner
participants (1)
-
bugzilla_noreply@novell.com