Don’t remove ticker object when notification is shown.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 23 Jan 2013 06:02:35 +0000 (07:02 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 23 Jan 2013 06:02:35 +0000 (07:02 +0100)
This will prevent an NPE if the Sone is unlocked.

src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 60cda15..d9a9dfb 100644 (file)
@@ -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);