Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:07, 23 August 2007.

KIJ000072 - Item.getLabel() Method returns incorrect value

From Forum Nokia Wiki


Item.getLabel() Method returns incorrect value
KIJ000072
Overview
The Item.getLabel() method doesn’t seem to return the correct value for a ChoiceGroup’s Label.         
Reported against
S60 1st Edition.
Date identified
March 23, 2004
Symptoms
The Item.getLabel() method may return a null value, which results in NullPointerException.
Detailed description
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:
System.out.println("Label: "+cg.getLabel());
The result is "Label: null." However, the "ChoiceGroup" label is properly visible on the screen.
How to reproduce
-
Solution
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.
Related Discussions
Thread Thread Starter Forum Replies Last Post
如何动态修改一个ListBox的一个Item的值? leafboy009 Symbian 3 2007-09-28 12:40
Partly dynamically setting list problem kaiten-sushi Symbian User Interface 3 2007-05-09 16:22
Known Issues Nokia Ron Mobile Java General 49 2008-04-04 18:38
get item details from listbox dakosurf Symbian User Interface 3 2008-05-01 14:26
NMSS SDK - MMSEngine.getStatus? millec General Messaging 0 2003-11-10 21:43
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX