mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 16:22:06 +01: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:
parent
bcab930f28
commit
b91dd8defd
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ public class LastActivity extends IQ {
|
|||
String seconds = parser.getAttributeValue("", "seconds");
|
||||
String message = parser.nextText();
|
||||
if (seconds != null) {
|
||||
lastActivity.setLastActivity(Long.parseLong(seconds));
|
||||
long xmlSeconds = new Double(seconds).longValue();
|
||||
lastActivity.setLastActivity((int)xmlSeconds);
|
||||
}
|
||||
|
||||
if (message != null) {
|
||||
|
|
Loading…
Reference in a new issue