Archived:Item.getLabel() Method returns incorrect value on S60 1st Edition (Known Issue)
The Item.getLabel() method doesn't seem to return the correct value for a ChoiceGroup's Label.
The Item.getLabel() method may return a null value, which results in NullPointerException.
There is a known issue in setting the label in ChoiceGroup constructor. A ChoiceGroup (direct subclass of Item) is created as follows:
cg = new ChoiceGroup("ChoiceGroup", ChoiceGroup.EXCLUSIVE, stringOptions, null);
and if the label is queried as follows:
The result is "Label: null." However, the "ChoiceGroup" label is properly visible on the screen.
If the label is set by using the Item.setLabel() method instead of just using the ChoiceGroup constructor, also the Item.getLabel() method returns the correct result.