use empty wake lock tag

This commit is contained in:
Daniel Gultsch 2017-11-21 13:25:18 +01:00
parent 52e09d17e8
commit 05b6fdb9f1
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ public class XmppConnection implements Runnable {
public XmppConnection(final Account account, final XmppConnectionService service) {
this.account = account;
this.wakeLock = service.getPowerManager().newWakeLock(
PowerManager.PARTIAL_WAKE_LOCK, account.getJid().toBareJid().toString());
final String tag = account.getJid().toBareJid().toPreppedString();
this.wakeLock = service.getPowerManager().newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, tag == null ? "[empty bare jid]" : tag);
mXmppConnectionService = service;
}