1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-14 15:44:49 +02:00

SMACK 103 - LastActivtity throws numberformat exception in certain cases. This has been resolved.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3018 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro 2005-11-01 22:47:34 +00:00 committed by derek
parent bcab930f28
commit b91dd8defd

View file

@ -113,7 +113,8 @@ public class LastActivity extends IQ {
String seconds = parser.getAttributeValue("", "seconds"); String seconds = parser.getAttributeValue("", "seconds");
String message = parser.nextText(); String message = parser.nextText();
if (seconds != null) { if (seconds != null) {
lastActivity.setLastActivity(Long.parseLong(seconds)); long xmlSeconds = new Double(seconds).longValue();
lastActivity.setLastActivity((int)xmlSeconds);
} }
if (message != null) { if (message != null) {