Procházet zdrojové kódy

Fix NPE in FD notifications plugin.

We had two instances of the FDManager around - one for the command and
once owned by the plugin. The command's instance was never loaded so
had no icon.

Change-Id: I525781a1ede263cbb0ee27f4fb0114dcded2245a
Fixes-Issue: CLIENT-471
Reviewed-on: http://gerrit.dmdirc.com/3231
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8
Chris Smith před 10 roky
rodič
revize
1bb3e671c9

+ 2
- 0
src/com/dmdirc/addons/freedesktop_notifications/FDManager.java Zobrazit soubor

@@ -38,9 +38,11 @@ import java.io.IOException;
38 38
 import java.util.ArrayList;
39 39
 
40 40
 import javax.inject.Inject;
41
+import javax.inject.Singleton;
41 42
 
42 43
 import org.apache.commons.lang.StringEscapeUtils;
43 44
 
45
+@Singleton
44 46
 public class FDManager implements ConfigChangeListener {
45 47
 
46 48
     /** Global configuration. */

Načítá se…
Zrušit
Uložit