Fix a bug that prevented me from starting CS.

No idea why this error suddenly pops up, this is old (but wrong) code.
This commit is contained in:
Hugo Trippaers 2014-10-29 16:59:00 +01:00
parent cf5b56d617
commit a265d7b505
1 changed files with 2 additions and 3 deletions

View File

@ -168,12 +168,11 @@ public class OnwireClassRegistry {
try {
Class<?> clz = Class.forName(className.replace('/', '.'));
classes.add(clz);
} catch (ClassNotFoundException e) {
} catch (NoClassDefFoundError e) {
} catch (ClassNotFoundException | NoClassDefFoundError e) {
s_logger.warn("Unable to load class from jar file", e);
}
}
}
IOUtils.closeQuietly(jarFile);
}
} while (jarEntry != null);