use empty wake lock tag

This commit is contained in:
Daniel Gultsch 2017-11-21 13:25:18 +01:00
parent 52e09d17e8
commit 05b6fdb9f1

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;
}