Browse Source

Don't try to load folders as identities

Fixes issue 3671

Change-Id: I76856a195e6e08dcd59c4849aac491725811c2df
Reviewed-on: http://gerrit.dmdirc.com/721
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3b1
Chris Smith 14 years ago
parent
commit
e573364b7e
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

@@ -322,6 +322,11 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
322 322
                 final String name = entry.getKey();
323 323
                 final InputStream stream = entry.getValue();
324 324
 
325
+                if (name.endsWith("/")) {
326
+                    // Don't try to load folders as identities
327
+                    continue;
328
+                }
329
+
325 330
                 try {
326 331
                     final Identity thisIdentity = new Identity(stream, false);
327 332
                     identities.add(thisIdentity);

Loading…
Cancel
Save