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 12:07, 23 August 2007.

KIJ000586 - WMA implementation for getTimestamp() returns always null

From Forum Nokia Wiki


WMA implementation for getTimestamp() returns always null
KIJ000586
Overview
-
Reported against

S60 3rd Edition
Category
Java
Subcategory
Wireless Messaging API
Date identified
February 22, 2007
Symptoms
-
Detailed description
JSR-205 defines a method getTimestamp(), which is applied to a message and it indicates when the message has been sent (see JSR-205, page 16). According to JSR-205, this method might return "null if the timestamp is not set or if the time information is not available in the underlying protocol message". However, the S60 WMA implementation returns always null as when calling getTimestamp() and this might create problems for MIDlets if the result of the getTimestamp() method is not checked against the null value.
How to reproduce
Call getTimestamp() for a received MMS. It will return null.
Solution
This problem is corrected in S60 3rd Edition, FP1. Note that Java applications should be prepared for the situation when the getTimestamp() function returns null (the most common mistake found in MIDlets is that they simply call the getTimestamp().toString() method without checking the result of the getTimestamp() method against null in beforehand).
Related Discussions
Thread Thread Starter Forum Replies Last Post
Address = null rwklink Location Based Services and Navigation 1 2007-09-04 11:27
J2ME and Daylight savings render Mobile Java General 0 2005-03-31 13:38
Port of the modem banjamalalak Mobile Java General 8 2006-10-20 15:17
WMA: SMS recieving 3hrguy Mobile Java General 1 2003-05-22 09:18
KERN EXEC 3 while adding contact Kavit Patel General Symbian C++ 4 2008-05-16 11:15
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX