Browse Source

Dont try to load null streams as identities

Fises issue 3703

Change-Id: Ide3378913131062ddcb60dd6a0995b2383934990
Reviewed-on: http://gerrit.dmdirc.com/933
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3rc1
Gregory Holmes 14 years ago
parent
commit
943cffb012
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/com/dmdirc/plugins/PluginInfo.java

+ 5
- 0
src/com/dmdirc/plugins/PluginInfo.java View File

@@ -309,6 +309,11 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
309 309
                     continue;
310 310
                 }
311 311
 
312
+                if (stream == null) {
313
+                    //Don't add null streams
314
+                    continue;
315
+                }
316
+
312 317
                 try {
313 318
                     final Identity thisIdentity = new Identity(stream, false);
314 319
                     identities.add(thisIdentity);

Loading…
Cancel
Save