From: David ‘Bombe’ Roden <bombe@pterodactylus.net>
Date: Wed, 23 Jan 2013 06:02:35 +0000 (+0100)
Subject: Don’t remove ticker object when notification is shown.
X-Git-Tag: 0.8.5^2~3^2~60
X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9161c1d7f558fee1cde877b8179463b113671d07;p=Sone.git

Don’t remove ticker object when notification is shown.

This will prevent an NPE if the Sone is unlocked.
---

diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java
index 60cda15..d9a9dfb 100644
--- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java
+++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java
@@ -964,7 +964,6 @@ public class WebInterface {
 			@SuppressWarnings("synthetic-access")
 			public void run() {
 				lockedSonesNotification.add(sone);
-				lockedSonesTickerObjects.remove(sone);
 				notificationManager.addNotification(lockedSonesNotification);
 			}
 		}, 5, TimeUnit.MINUTES);